You are not logged in.

#1 2008-01-19 10:20:00

Lazer
Banned
Registered: 2007-08-02
Posts: 111

choose a programming language

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

#2 2008-01-19 10:58:49

daf666
Member
Registered: 2007-04-08
Posts: 470
Website

Re: choose a programming language

I think it would be easiest to implement in PHP.

Offline

#3 2008-01-19 11:10:31

chimeric
Member
From: Munich, Germany
Registered: 2007-10-07
Posts: 254
Website

Re: choose a programming language

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 wink.

Last edited by chimeric (2008-01-19 11:12:56)

Offline

#4 2008-01-20 04:02:22

Lazer
Banned
Registered: 2007-08-02
Posts: 111

Re: choose a programming language

chimeric wrote:

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

#5 2008-01-20 23:07:55

gummibaerchen
Member
Registered: 2007-07-20
Posts: 109

Re: choose a programming language

Lazer wrote:

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

#6 2008-01-21 05:24:45

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: choose a programming language

Offline

Board footer

Powered by FluxBB