casback.blogg.se

Webpage into rss feed
Webpage into rss feed







webpage into rss feed

If a site has a feed, no sense in generating one for it, right? Use SimplePie to get started, but there are alternatives you don't like it. You should also have something to read existing feeds. Also, in time you may find a lot of sites using a particular template that you can write code to handle directly. There are plenty of element attributes too you can use, such as alt text. Beware though that probably less than half the sites out there (and likely far fewer from the ones that don't already have a feed) don't structure their site in an organized way. See Look for headings and try to associate them with the paragraphs below them. Now probably the best way to start would be to read the DOM. This might be as simple as forking PHP processes on the server, but you might find a more efficient way, depending on how much traffic you expect. Typically, you are going to want this to be multi-threaded and run in the background on your server. There is no simple or concrete answer to this question, but I will get you started.įirst, you need to build a crawler of sorts.









Webpage into rss feed