I am writing a program to scrape the following website: https://filmstoon.in/ From it, I want to find several movies (Batman Begins, Iron Man, Expendables 3) and TV series (Game of Thrones) and to scrape the title, the host url and the meta url. I managed to do this, however, it is manually crafted for the sp…
Tag: simple-html-dom
Resolve “Fatal Error: Call to a member function children() on null”
I am using PHP HTML DOM Parser to traverse a table DOM on a third party site and print out a particular set of values in a td element. This works for the first two columns I traverse. However, in the 3rd column, the $e operation returns Null. The HTML for that element is: The problem I have, is that
Display the value of variables in PHP, as soon as they are specified
I want to get about 50 variables from several different sites and show them to user, with PHP Simple HTML DOM Parser. My Code Structure is something like this: At the moment, this code works well and displays the variables, but as expected, it takes about two or three minutes to do this process and show all t…
Parse JSON data inside from occurrence of script tag using SimpleHtmlDom – PHP
I am using simple html dom to parse a link that contains two script tags with type=application/ld+json. The target website structure is like below, // tag that I want to parse
Simple Html Dom library works on local server but not in mostly live server
I am using curl for web scraping and to parse html used simple html dom library which is great and simple. But my main problem is that this library works smoothly on local server but not in live server. Strange thing is that it can work on 000webhost hosting without any issue, but when I use other paid hostin…
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…
Scraping tag with certain keyword using Simple HTML Dom Parser
I’m attempting to scrape a <script> tag from a set of webpages using Simple HTML Dom. At first, I was scraping it by providing the numerical order of the tag I needed: I’ve come to realize that the order differs depending on the page (and it’s just not a scalable way of doing this sinc…
Find div that has no class and no id in PHP Simple HTML DOM Parser
I am using PHP Simple HTML DOM Parser. It works well, but I have problem selecting divs that do not have both ID AND CLASS. will return all divs that has no class, but can have ID. I tried this one but it did not work. Answer I don’t think that it has this sort of functionality, if you look
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…