sheraz Posted April 24, 2010 Share Posted April 24, 2010 hi, i m working on a project in which i have to read the data from RSS. but the problem is how i will get the required data. i have see some tutorials but they are reading whole document. Can anybody help me that how i can solve this problem. :'(--/ Quote Link to comment https://forums.phpfreaks.com/topic/199570-scraping-the-required-data-from-rss/ Share on other sites More sharing options...
cags Posted April 24, 2010 Share Posted April 24, 2010 An RSS feed is essentially an XML document. As such it can be parsed with any of the DOM document technologies. One option would be to use the simplexml extension. I believe there is an example of parsing xml in the tutorials section of this site. Quote Link to comment https://forums.phpfreaks.com/topic/199570-scraping-the-required-data-from-rss/#findComment-1047551 Share on other sites More sharing options...
sheraz Posted May 1, 2010 Author Share Posted May 1, 2010 well i thanks alot sir, a found the solution, now i have another requirement, actually reading rss link one by one will not be a so good, because it will be a static approach, my requirement is that whenever the site rss links are updated, then i automatically get the updates. is there any function or library which can help me. a friend of mine told me that i have to create a crawler, but how to develope a crawler, is there any function or library available in php, Quote Link to comment https://forums.phpfreaks.com/topic/199570-scraping-the-required-data-from-rss/#findComment-1051486 Share on other sites More sharing options...
Daniel0 Posted May 1, 2010 Share Posted May 1, 2010 Just read it periodically and load the links you haven't already got. Each entry will have a publish date, so you can just store when you last checked the feed and disregard entries older than that timestamp. Quote Link to comment https://forums.phpfreaks.com/topic/199570-scraping-the-required-data-from-rss/#findComment-1051504 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.