razaviv Posted February 9, 2011 Share Posted February 9, 2011 Hello, i want to load any html source code of a foreign site and find all the tv shows names and episodes and seasons in it to my databasehow can i do it?thanks Link to comment Share on other sites More sharing options...
justsomeguy Posted February 9, 2011 Share Posted February 9, 2011 That's a really vague question. How do you expect to separate the information you're looking for from everything else? Link to comment Share on other sites More sharing options...
razaviv Posted February 9, 2011 Author Share Posted February 9, 2011 http://www.zap2it.com/ i want to fetch from site like this all the tv shows names, seasons and episodes.. how can i do it?i want to make it auto fetch.friend told me that i should run script that will find in the html all the tv shows names, and every episode and season.how can i do it? Link to comment Share on other sites More sharing options...
justsomeguy Posted February 10, 2011 Share Posted February 10, 2011 Well, I suggest you email the site owners and see if they have an API or feed you can use, because if they do then that's the best way. Otherwise, you'll need to find one or more pages that list what you're looking for, look at the HTML code on those pages to figure out how to access the data you need, and use a regular expression to get the data. You can load the remote pages with a library like cURL, or you can use file_get_contents if it's available on your server to use with remote files. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.