You are not logged in.
Pages: 1
I want a program that can
analyse http://www.youtube.com/browse?s=mr&t=&l=&e=en_US&p=* (*=1-5) every 10 minutes
then pick out the link that start with http://www.youtube.com/watch?v=
export their related information and their links to a form that I want
sort them as their youtube added time
and it can run on my webpage
so what programming language should I choose to write this program?
Offline
I think it would be easiest to implement in PHP.
Offline
Your program consists of two parts, to query the site in a given interval and to display the videos/information on your website. I think PHP would suite best for displaying the videos on your page, but then, if you have a python/ruby powered website then use the one you make your website with. For the query part I would use python and write a small script that gets triggered via a cron job in the interval you like. Instead of parsing the contents of the page itself I would use the RSS feed provided by the youtube page, there's a python module named "feedparser" with which you can easily access the feed contents and extract the related information (shouldn't be more than maybe 50 lines of code), write it to a database (sqlite), in the form that you like, and retrieve the contents via your PHP script on your webpage. Or completely skip the time interval query part and just check for new videos when someone visits your website .
Last edited by chimeric (2008-01-19 11:12:56)
Offline
For the query part I would use python and write a small script that gets triggered via a cron job in the interval you like.
For the query part
What's the differences between PHP Python and Ruby?
Offline
What's the differences between PHP Python and Ruby?
I guees this is one of the most asked questions concerning learning new languages nowadays.
And the answer is so complex that one wouldn't really understand them having not use all three themselves.
Personally I would use Python, but you should check what your server supports and then decide on the language.
Furthermore for what you want to do, all three a suited.
Offline
Perhaps you could use that: http://www.igvita.com/2007/03/22/agile- … r-in-ruby/
Offline
Pages: 1