Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Support for authentication on globo.com #4189
Comments
|
globo subscription is paid-only. We can add support for it only if you are willing to provide valid account credentials. |
|
If anyone is going to add support to this, I can borrow my account info... just message me: wbecher @ gmail.com |
|
There is a Kodi plugin written that allows streaming of pay walled Globo movies by vitorhirota here: https://bitbucket.org/vitorhirota/repository.brazilian.xbmc-addons/overview I believe this part of the code does the authentication: https://bitbucket.org/vitorhirota/repository.brazilian.xbmc-addons/src/29ce020aea66cb281c3bf55607a6f528ee60b3ee/plugin.video.globotv/resources/lib/globo.py?at=master#globo.py-157 I tried getting it to work in youtube_dl but the _download... functions were not working for me. I couldn't get it to work with requests.post either (might need to check if the URL works?). I would need to read into how youtube_dl requests stuff before going further. With that being said anyone else want to have a go? |
|
OK so now I have an issue submitting to the authentication script. It gives me a 400 error. I suspect it is looking for a cookie variable, specifically 'glb_uid' but could not work out how it is generated. |
|
I did not have any luck getting youtube-dl to authenticate. However I had some luck in copying the cookies out of a logged in Globo session in browser into cookies.txt and adding it to the youtube-dl command eg. |
|
I can provide valid credentials for you to test this site. |
|
Authentification is now mandatory even for free (non-paid) videos (like this one).
gives the following error:
OS: Ubuntu 17.10 edit: @adamstraube could you tell me the name of the correct cookie, so I can try to run youtube-dl with |
|
I managed to use cookies for globo as well. As @adamstraube mentioned it seems to time out pretty quickly. I managed to download the first few fragments of this video and then got the following error.
Interestingly though, I can start downloading another video with the same cookie and get the same error again after a few dozens fragments. |
|
Hello guys, the cookies.txt trick did worked for me.
@Troyciv you have to login on globo and generate your own cookies |
|
Here, even adding the cookies, still does not work. $ youtube-dl -v --cookies ~/Downloads/cookies.txt https://globosatplay.globo.com/globonews/v/6570759/ [debug] System config: [] |
|
Alguém conseguiu com Globosatplay? O Globo play já consegui! Globoplay: youtube-dl.exe -u usuario@exemplo.com -p senha --external-downloader aria2c.exe https://globoplay.globo.com/v/6670684/programa/ *lembra só de instalar o aria2c.exe e inserir no PATH |
|
Globosatplay tem um intermediário, no caso você faz login primeiro no site da operadora, e depois é redirecionado para o globosatplay, então teria que capturar o método usado nesse meio para conseguir acessar os videos. Eu não tenho conhecimento necessário para isso, mas acho que olhando nas ferramentas do desenvolvedor é possível identificar que página é usada para solicitar o login na operadora e depois repassar para o globosatplay |
|
Youtube-dl still doesn't work for me. OS: Ubuntu 17.10 I do have a globoplay account (free/non-paid). I tried to use youtube-dl with the Next I fired up I get the following error:
Interesting to say is that globoplay seems to send set-cookie headers.
Next, I tried I got the same error:
|
|
|
|
@remitamine There were no |
|
works fine with cookies(globo is looking for
|
|
I do have these two GLBID cookies:
Still get the error. Could it have to do something with geo-restriction or user-agent? |
no, it's not, most likely it's caused by the expiration date in you're file(
|
|
Yes, that's it. Omg, thank you so much. I just replaced the 0 with your number, now it works. I checked my other cookies. All (!) of them have a 0. Any idea why that could be? Edit: I think I found the issue. It's a browser setting. In Firefox I had set the cookie setting to "keep cookies until I close Firefox". I set them back to "until they expire", now the exported |
|
I'm afraid the problem is not completely solved yet. The download starts but after ~20min I get
If I abort the download with |
Thank you very much for supporting globo.com videos (#3823). Can you please support also the authentication options --username and --password on globo.com? It is not working on version 2014.11.13.3 (the newest by now).
An example URL would be:
http://globotv.globo.com/rede-globo/globo-reporter/t/para-assinantes/v/globo-reporter-amazonia-nas-alturas-07112014/3751209/
And running the following command gives the output:
youtube-dl -u username -p password -t --console-title -v http://globotv.globo.com/rede-globo/globo-reporter/t/para-assinantes/v/globo-reporter-amazonia-nas-alturas-07112014/3751209/
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-u', u'PRIVATE', '-p', u'PRIVATE', '-t', '--console-title', '-v', 'http://globotv.globo.com/rede-globo/globo-reporter/t/para-assinantes/v/globo-reporter-amazonia-nas-alturas-07112014/3751209/']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.11.13.3
[debug] Python version 2.7.8 - Linux-3.16.0-24-generic-x86_64-with-Ubuntu-14.10-utopic
[debug] exe versions: avconv 11-6, avprobe 11-6, ffmpeg 2.0.1, ffprobe 2.0.1
[debug] Proxy map: {}
[Globo] rede-globo/globo-reporter/t/para-assinantes/v/globo-reporter-amazonia-nas-alturas-07112014/3751209/: Downloading webpage
[Globo] 3751209: Downloading JSON metadata
[Globo] 3751209: Downloading security hash for 3751209_wmsm
ERROR: Globo returned error: Video is for subscribers only. Authorization required.
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 536, in extract_info
ie_result = ie.extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 199, in extract
return self._real_extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/globo.py", line 370, in _real_extract
'%s returned error: %s' % (self.IE_NAME, message), expected=True)
ExtractorError: Globo returned error: Video is for subscribers only. Authorization required.