Skip to content

Tag: simple-html-dom

How can i take the element name inside the Html

How can i able to find the date format in UTC from the html element 2018-06-14T03:00:00.000Z. I am new in php so i don’t know how to grab it. Answer You might do it using find for getting the div with classname fi-mu__info__datetime and then getting the data-utcdate: If you only want the first one you c…

simple-html-dom get table id by class name

I’am trying to build a scraper using simple-html-dom. Each tr has the class “event-listing” as well as a unique id. Everything is working but I cannot figure out how to get and store the id’s. Here’s my code: Answer You don’t need anything special $event->id would work j…

scrape data using regex and simplehtmldom

i am trying to scrape some data from this site : http://laperuanavegana.wordpress.com/ . actually i want the title of recipe and ingredients . ingredients is located inside two specific keyword . i am trying to get this data using regex and simplehtmldom . but its showing the full html text not just the ingre…