Posts: 843
Joined: Mar 2008
Use wireshark to determine how the media url is resolved then it`s all about urllib2 and regular expressions and correct indentation.
If i get time i`ll look at it.
Posts: 95
Joined: May 2008
Reputation:
7
Will try wireshark, and thanks for any help you can give.
Regards
Ricardo.
Posts: 843
Joined: Mar 2008
2008-06-03, 00:35
(This post was last modified: 2008-06-03, 00:40 by Voinage.)
Alright, i really hope that this is for a script you are writing or a plugin.
http://video.globo.com/Videos/Player/Ent...nto/0,,GIM835039-7822-DUAS+CARAS+ULTIMO+CAPITULO+NA+INTEGRA,00.html
scrape the source, but you only want the media id in red.
then add that to :-
http://playervideo.globo.com/webmedia/GM...e&midiaId=
then open that and view source to get the flash urls & all other information relating to the files.
So in python you will have to parse the page get the media id then add that to the url.
After that parse the new page to get the flv`s & other info.
this works with all their content Ricardo
Cheers Voinage.
Posts: 95
Joined: May 2008
Reputation:
7
Hey Voinage,
you make it seem so simple! Thanks dude.
These shows are soup operas absolutely loved by my wife, and play big role on closing the gap between our current european lifes and our home country habits. If they are readily available in the living room, even better.
I will dedicate some time to learn python enough to try to draft such a script. First challenge is that the videos IDs seem pretty random, not following any order/pattern that I can distinguish.
Anyway, will try it.
Thanks for your help & Best regards
Ricardo.
Posts: 843
Joined: Mar 2008
Ricardo , if you want me to build a plugin just request it in my thread at the top of the forum- give me some time and i will see to it.
Posts: 95
Joined: May 2008
Reputation:
7
Voinage,
I took some time to learn Python enough to be able to draft a rudimentar script for this.
You were right on the search engine. It is great and finetuning the query it is possible to get links for all shows in Globo.com, well organized per date.
That is gold value in this case, as it just takes some parsing and regexing, and your advise (above) on the direct player link to get the links for the actual video files.
However I am stuck on the authentication. Ahutentication is required for some of their content. Once you get the index of shows via and search engine, if you click on one of the protected shows, then user login pops up.
I am subscriber of theis service, I would like to know how to pass auth information from the python script.
Of course I guess this is depending on the way they carry out authentication, but do you know of any way I could work with authentication in this case?
Regards
Ricardo
Posts: 1
Joined: Sep 2008
Reputation:
0
Hey rbonon .... How is your script development comming along? I'm very interested in a script for xbmc and globo.com, so if you have anything usable please let me know ;-) it'll save me the time from doing it myself.
Obrigado