Scraping part of a website (bbc.co.uk/news) [migrated]
on the bbc.co.uk/news site, there is a most popular section (most read, etc), (i'm very new at wordpress development and am trying to learn). The issue I have is that when I use wp_remote_get ($url); and print_r/echo it, it returns the whole site. Thats a good start, however I only want it to display the most popular section. How would I go about filtering out all the other stuff, when all I need is that section. I know the DIV of it is literally 'most popular' i'm just completely stumped. Cheers!
on the bbc.co.uk/news site, there is a most popular section (most read, etc), (i'm very new at wordpress development and am trying to learn). The issue I have is that when I use wp_remote_get ($url); and print_r/echo it, it returns the whole site. Thats a good start, however I only want it to display the most popular section. How would I go about filtering out all the other stuff, when all I need is that section. I know the DIV of it is literally 'most popular' i'm just completely stumped. Cheers!
No comments:
Post a Comment