Jump to content

How to extarct news URL links from any website


digitalalpha

Recommended Posts

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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.