question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error with vid_info & vid_info_url

See original GitHub issue

Hi there, I am currently using python 2.7.9 and pytube 8.0.2 and I have noticed that vid_info returns and error code 2 (Invalid Parameters) for the example video on the pytube site and any other YT URL I have tried. Here is what happens:

Python 2.7.9 (default, Sep 17 2016, 20:26:04)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from pytube import YouTube
>>> yt = YouTube('http://youtube.com/watch?v=9bZkp7q19f0')
>>> yt.vid_info
{u'status': u'fail', u'errorcode': u'2', u'reason': u'Invalid parameters.'}
>>> yt.vid_info_url
'https://youtube.com/get_video_info?video_id=9bZkp7q19f0&el=%24el&ps=default&eurl=https%253A%2F%2Fyoutube.com%2Fwatch%253Fv%253D9bZkp7q19f0&hl=en_US&t=%252C%2522t%2522%253A%25221%2522'
>>>

If you paste the vid_info_url into a browser then you get the same error as can be seen above. Everything else looks ok and I can download the video ok.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:8

github_iconTop GitHub Comments

2reactions
ZachGlassmancommented, Feb 15, 2018

It seems to be related to the el=$el attribute in the vid_info_url. If you just take that out, it works!

0reactions
github-actions[bot]commented, Aug 24, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Problem in Vidinfo [SOLVED] - Media Center Master
When I try to pull by MCM a video file from the download folder so the msm can organize and do the whole...
Read more >
"urllib.error.HTTPError: HTTP Error 404: Not Found ... - GitHub
I've been getting this error ever since I downloaded pytube, which was only two weeks ago, but it keeps getting worse.
Read more >
Asynchronous loading - crawling dynamic data_json_Mangs ...
... the video description in each floor vidinfo['url'] = item['arcurl'] # Get ... The editor reports an error, which seems to be due...
Read more >
ilveroamore :: Guestbook - PDF Free Download
VidInfo es un curso creado por Carlos Cadena , que es una y te enseсe todo lo que tienes que saber, para ganar...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found