i am trying to make a script that can automatically fetch latest X videos from youtube. i want to get the thumbnail and the embed code of the video and add it to a database table. i am trying to use preg_match_all to do this. i am new to regular expressions so i am having trouble getting it to work.
can anyone give me the code for this script?
script for fetching content
Started by Sajid213, Dec 16 2009 05:56 AM
2 replies to this topic
#1
Posted 16 December 2009 - 05:56 AM
|
|
|
#2
Guest_Jordan_*
Posted 16 December 2009 - 06:10 AM
Guest_Jordan_*
Instead of fetching the website contents and trying to parse the data on Youtube, you should work with their API: YouTube APIs and Tools - Google Code
This will allow you to fetch the data you desire from an XML document with relative easy.
This will allow you to fetch the data you desire from an XML document with relative easy.
#3
Posted 16 December 2009 - 06:16 AM
thanks. i didn't know about that API :D


Sign In
Create Account

Back to top









