views:

142

answers:

1

Hi,

I'm trying to find a solution to download automatically .flv link everyday from a website using wget and to store all the links into a database to stream them in my website. (all in php) How to do that? I don't need to store the files only links into the database.

Best regards,

+1  A: 

I don't know why you would need wget.

You could use curl to go to the website and get the new link. After you have the link, just store the information in the database and your done.

You are basically scrapping other sites for content.

This article looks like it is promising:

http://www.merchantos.com/makebeta/php/scraping-links-with-php/

You could also try to search google. I used the term:

scrapping site php curl

Have fun.

Regards.

mediaslave
Thanks for the link. I try to use Dom the day after I post my question but I didn't have what I wanted. And now I'm trying with preg_match_all. I will make a new thread for that.
ludo
Anyway thank you that will help me~
ludo