Welcome, Guest
Please login or register
May 18, 2012, 08:27:52 AM
Topic: Youtube-playlist to XML conversion ? (HELP !)  (Read 2294 times)
Author
Youtube-playlist to XML conversion ? (HELP !)
youtube-expert
**
Posts: 80

« on: February 09, 2010, 01:36:14 PM »

.

I have 50 playlists at Youtube.

Each playlist contains 200 videos

So that is a total of 10000 videos.

Most of these videos are not my own
...they are other peoples videos
but i have added them to my playlists.


I really can not copy all these iD's...one by one into the XML video list
that will take me many months !

Also if i would change these playlists..for example:

Change the order. 
Add a video.
Remove a video.
Video was removed by the owner.

...then i would have to change my PlayerIII XML playlist also
which is a very complicated and a lot of to much work...to do manually ..one by one.  Shocked

-----------------------------------------------------------------------------------------------------------
So i am looking for a easy way to get all Youtube-videos in a certain Youtube-playlist
in the format that our PlayerIII will accept:
-----------------------------------------------------------------------------------------------------------

I'm have already figured out most..so please continue reading below:



Youtube dont give you a simple list with only these (clean iD's)
and "Our" XML does have a different format for Youtube-videos like this:

<video>
<videoPath value="http://www.youtube.com/watch?v=5e16U8UsT4I"/>
</video>

As said i dont konw of a way to get it like that from Youtube directly
even i would find a way it will always be just 50 videos per request
since that is how youtube works (Gdata) so i have to do 4 request to get
on complete (200) list...still as said the format is NOT suited to copy & paste
directly to our XML list...a manual one by one copy & paste is impossible
and unpractical as i have shown above.

So i need some converter/reformatter..or some texteditor..or notepad-method
to get those youtube-id's and reformat them for our XML.


Here's a tool that was made for me...unfortunately the guy who made it for me
is not interested to do some changes.

Download it from here: http://www.megaupload.com/?d=6LXVYV14

Its not a program but instead a simple webpage that you open locally
a script on that page will show all your playlist and video url's
all you need to do is enter a valid youtube-username in the username field

It works best in > Firefox <

Once you have enter a valid username..you press "EXPORT PLAYLISTS"

and voila you will see the page populate with all your playlists and videos in them
..this time it shows all the videos and not just 50...but all 200 per list.

This is a unique tool...you wont find that anywhere else !
(it's also good to make a backup of your youtube-playlist)

Now as you will see the format of the playlists is like this:

Code:

001 http://www.youtube.com/watch?v=BoQNj2tlZhg&feature=youtube_gdata Buena Vista Social Club - Chan Chan
002 http://www.youtube.com/watch?v=W2QgRFCsOvU&feature=youtube_gdata Alberto Barros (Tributo Salsa Colombiana) MEDLEY
003 http://www.youtube.com/watch?v=HSbLZpDcaYU&feature=youtube_gdata The Sons Of Buena Vista Luis Frank Habana Kuba
004 http://www.youtube.com/watch?v=0EXwLd4W5p4&feature=youtube_gdata ICAN (EDDIE CANOS) "arturo sandoval, ed calle, chick corea..
005 http://www.youtube.com/watch?v=GCa1GXCaiT4&feature=youtube_gdata Marc Anthony - El cantante
006 http://www.youtube.com/watch?v=7Dh3AJnF2HU&feature=youtube_gdata DISCO BAILABLE - TRIBUTO A PABLO LEBRON
008 http://www.youtube.com/watch?v=Wd-Cyl6K28I&feature=youtube_gdata "Mira" Video Fulanito ft/ Truko (ToP DoLLaR EnT)
010 http://www.youtube.com/watch?v=SYlhUoEXMVI&feature=youtube_gdata Alex Wilson Salsa Music Live
011 http://www.youtube.com/watch?v=FiAYCXz5F50&feature=youtube_gdata BARRIO LATINO 2008 / Salsaparty.fr
012 No Link (jmIpFEEz1J8) Maraca - Descarga Total
013 http://www.youtube.com/watch?v=cV2hWZlragA&feature=youtube_gdata El Milagro De Tu Amor
014 http://www.youtube.com/watch?v=nOi79am5W4I&feature=youtube_gdata Traveling with Robertico - Episode 1
015 http://www.youtube.com/watch?v=aZ8zXfkM2D8&feature=youtube_gdata Alberto Barros- ahora me toca a mi
016 http://www.youtube.com/watch?v=kvkUcpiIyI4&feature=youtube_gdata ALBERTO BARROS el preso y cachondea
017 http://www.youtube.com/watch?v=o2JnWf_YMKA&feature=youtube_gdata Issac Delgado live a Latinoamericando Exp?
018 http://www.youtube.com/watch?v=BshfBTjgf8Q&feature=youtube_gdata The Sons Of Buena Vista Musica Cubana El Nene Si Yo Pudiera
019 No Link (TGz4MDKoRYE) oiga mire vea andy caicedo salsa colombiana para el mundo
020 No Link (fJXgc5ji5J4) SALSA COLOMBIANA HOMENAJE A DIEGO MORAN PA?L BAILADOR
021 http://www.youtube.com/watch?v=5jEVTczB2IU&feature=youtube_gdata Compa Galletano ... Orlando Puntilla R?os, Patato
022 http://www.youtube.com/watch?v=gLER8GpV24c&feature=youtube_gdata RUBEN BLADES. "TODOS VUELVEN".





...etc up to 200

"NO LINK" means that this video dont exist anymore (removed,blocked...etc)
which is also a valuable indication..since it will not play in our player
so you can now simply see that..and remove that video from the list



.


Now we are almost there !  Tongue


... All that is needed now is some method to convert/format above to our XML format.

-------------
QUESTION
-------------

How to easely convert/reformat above list (text) to our XML-format (text) ?

Example:

005   http://www.youtube.com/watch?v=GCa1GXCaiT4&feature=youtube_gdata   Marc Anthony - El cantante

should become:

<video>
<videoPath value="http://www.youtube.com/watch?v=GCa1GXCaiT4"/>
</video


How to do that ?   (for a whole long list at once)

I have tried some simple "replace" using notepad
but that wont do it..so i guess i need something
where you can filter or add things to a large textfile
so it comes out as needed.

I hope you can help me...cause without it i cant do it
any other way would be welcome also ofcourse

This is really needed to make FlashXpert-players a success
anyone with a few large playlists at Youtube will need a easy way
to import the video-url's into our XML-list.


Thanks


Youtube-expert 
.





Peter - Icebear
Global Moderator

*****
Posts: 196

« Reply #1 on: February 13, 2010, 06:12:14 AM »

@Youtube-expert

Can you send me that script by e-mail, because the file may be corrupted or needs a password to open the rar file.
I can look/alter it, if you want.

You can send me a PM (even in dutch if you want)  Wink

You only need it to display it on the screen so you can copy the video tags, or integrated with the xml file?

Greetings Peter

"In the end, it's not going to matter how many breaths you took, but how many moments took your breath away"
youtube-expert
**
Posts: 80

« Reply #2 on: February 13, 2010, 01:42:57 PM »

the passw is:  djmambito


Try it and see how unique it it
unfortunately the guy who made this to my specifications
has disappeared.

As you will see the format of the output can not directly be used
in our player here.

So we would have to copy the video-urls one by one...which is impossible for 8000+ videos

Ideal would be some similar tool where you enter only the youtube-plylist-iD
and the output will be a XML-file in the format needed for our player.

if that is to much work...then we could alternatively have something to
copy the output of my own tool and run it trough something that will remove the unwanted stuff
and add the XML-tags to around the urls as needed. ..i believe such a tool could be called "'search and replace"
but that uses "'expressions" to which i am not familiar with.

Let me know of you succeded in using me tool..and if you can modify it
or make somthing in addition to get it right for our player.

Ps) if you are anywhere near Amsterdam..we could maybe have some coffee somewhere and discuss it.

youtube-expert
**
Posts: 80

« Reply #3 on: February 19, 2010, 07:19:10 PM »

.

I got the tool ready.

You enter a Youtube "username"
and it spits out all his playlists with the individual videos
nicely in the format as required by our player here.

You simply copy & paste it to our XML

I have 8000 videos in 140 playlists..it takes a few minutes only.

You can even set other output-formats for other players.

It even separates "Valids" and "Rejects" in 2 separate lists
"Rejects"" are those that wont play in our player..because they
are not available for playing..(not embedable,removed,restricted...etc)
this feature avoids problems for our player which could hang if a video is not availble.

The reject list also shows as much as possible info for the unavailable videos
so it also allows you to search for that same (rejected) video from a different user
...since that one might play..so you can replace it.

I'm disappointed...that there's no real interest (yet)
which shows our player is far underestimated...and not known to the community
which is most certainly looking for something like that.

Currently they go somewhere else...to other players that cant do half of what our's can
simply because they dont know this one.

.

Peter - Icebear
Global Moderator

*****
Posts: 196

« Reply #4 on: February 20, 2010, 03:43:16 AM »

Glad it worked out.
I was busy with caching for it, in PHP. So it is possible to generate the list using the cronjob like every couple of hours..
It saves people time and handjobs.

Maybe the player is big outside the Netherlands. No one near us had heard of the player before we used it aswell.
It all takes time to make the community big..

I saw it during a search for a good alternative of JWplayer. Had many choices on flashcomponents but this one stands out big time Smiley


Greetings Peter


"In the end, it's not going to matter how many breaths you took, but how many moments took your breath away"
youtube-expert
**
Posts: 80

« Reply #5 on: February 20, 2010, 03:49:09 PM »

.

PHP ? ..that would be some online server-side program ?

Sounds interesting..but i got it now as a offline standalone tool
that runs at your own pc...dont see the advantage of doing that in PHP
but maybe later it turns out to be interesting...maybe for automatic updating ?

so go ahead o would say  Wink

When we talk about popularity...then i would say thats worldwide
there is no youtube Api-player at all that is made here.
allthough the inventor of JW-player seems to be Dutch
Our player is not big in...and not big outside the Netherlands
at least not for Youtube...as a matter of fact i have never
seen a online youtube-application yet (except mine)...i have not seen a single
conversation about it in any Youtube-related forum or website.
I guess that could/should be improved..i'm shure there's many people
looking for it...and THAT i do read every day in places where they are struggling
with complicated scripts...and still not get it working.

It would only take some comments in these fora or blogs that THE solution is this player
a search for Youtube api-player..brings up 100000 results..but not this player..instead
it brings up either youtubes own horror-player or a thousand players that do not work anymore
since they are outdated and use old and complicated protocols...with 1 exception they
cannot do youtube-HD...that 1 exception does have other significant problems...etc..etc.

My suggestion is to quickly get our player clean and free from a few little but important shortcomings
after that...make shure it gets known in the right places...which is not only the few Flash-websites
where its advertised now..but better at the youtube-communities..there is where you find customers.
The youtube-Api forum would be a good place for a start...outthere there's hundreds that struggle with the Api-code
for others its to complicated anyway..our player would be a solution for many of them.

Youtubes own standard embedded player..has lots of shortcomings:
you cant integrate it such that the colors match your website design.
you can only have playlists with max 25 videos (but youtube can be 200).
you cant use xml-lists (videoiD's).
you cant mix with your own hosted videos.
you can configure practically nothing on the player.
there's no categories..if you want that you have to have a separate player for each.
the pop-up advertisements interfere with the player playing correctly
they change the player all the time.
...etc...etc

On top of that...Youtube itself..i mean the website and the players there
is going down fast...everything they do is now directed at advertising
in the player..on the player...and near the player
they have now killed the continious autoplay there...to better show ads
they have now forced a autostart for videos with ads
they dont repair any bugs anymore..only those having to do with showing ads...etc
there's 3 new bugs (i'm serious !) every week caused by their own updates
this is another reason that many are now looking for other ways.

So i say again...solve the not-to-difficult-to-solve youtube HD-playing imperfections
and get the word out. Cool




.

mahiyabz
*
Posts: 1

« Reply #6 on: January 29, 2012, 01:49:50 PM »

Greetings,

sadly mega upload is down, can you share this tool somewhere else? or email me ?

Pages: 1
 

Community

What's hot on the forums

I want to be able to add youtube video to the player. How do I do this?

Also, when someone watches the youtube video on the player, does y...

News

Stay up to date

We've launched a new cool project called VisionFlow.

Like it? Share it!

Tell your friends about us

Do you like our products or our site? We would be very grateful if you shared them with your friends, colleagues, parents, pets and spread the word about our awesome products.

Share to Facebook Share to Twitter Stumble It Email This More Share...