Hi everybody, I'm trying to scrape an html table of cities by population, with Goutte in laravel, I want to return the html table as php array and then turn it into json and save it to disk.
For some reason when I crawl the table I get an array full of null values, this is my code:
Hi everybody, I'm trying to scrape an html table of cities by population, with Goutte in laravel, I want to return the html table as php array and then turn it into json and save it to disk.
For some reason when I crawl the table I get an array full of null values, this is my code:
The result (notice all the nulls for some reason).
The html table structure is like this: