digitalalpha Posted February 5, 2008 Share Posted February 5, 2008 Can someone help me to explain how can I used PHP to extract news links for sites and stored them in database. This is for sites which does not offer RSS feed etc. e.g. Â http://www.cosco.com.sg/ir_multimedia.html http://www.capitamall.com/newsroom.html etc. Â Â basically, wants some code example which can explain how to read a website news link, and then collect LATEST news (URL, Subject line) and stored it to a database. Â Many Thanks in advance. Link to comment https://forums.phpfreaks.com/topic/89467-how-to-extarct-news-url-links-from-any-website/ Share on other sites More sharing options...
laffin Posted February 5, 2008 Share Posted February 5, 2008 this is where View Page Source comes in, or save as html.  than ya load it into yer favorite text editor (notepad,notepad++,textpad,ultraedit). and look how they construct the news.  you will see a pattern, and ya can manually extract the data but the more common way is to use regex  Link to comment https://forums.phpfreaks.com/topic/89467-how-to-extarct-news-url-links-from-any-website/#findComment-458194 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.