Screen Scraping Multiple Pages.
Hello im looking for some help with a php screen scraping script basically im looking to grab; Episode, Title, Type, Production Code, First Aired And Summary. You can see the code im using at http://www.e2tv.tv/p.txt and http://www.e2tv.tv/cScrape.txt but when you go to p.php just shows a blank page. please tell me where im going wrong and how to fix it please.
Cheers
Tom
hhunt posted this at 23:50 — 23rd March 2010.
They have: 17 posts
Joined: Oct 2009
Have you thought of using XML instead? It is one of the easiest ways to consume data rather that scrapping the screen. The script you have there requires us to run first to determine what the problem is...and some of us don't have that time.
My advice is to look for XML or RSS feed for the site(s) in question and use one of the many libraries out there to parse it.
Good luck.
Greg K posted this at 01:14 — 24th March 2010.
He has: 2,145 posts
Joined: Nov 2003
That would be a good recommendation if the site being scraped was intending for people to grab the content and use it elsewhere.
Based on the content on both sites, looks to me, like one site wants to just rip the content from one to put on their own competing site.
While I could provide a way to get what is being looked for, based on the the outwardly look for the use, I won't unless it can be clarified the purpose and the permissions since both sites list they are copyrighted, and I choose not to go near any infringement issues.
-Greg
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.