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.

pytube.exceptions.CipherError: Couldn't cipher the signature.

See original GitHub issue

Py27, OSX & CentOS 6.5, latest pip, latest pytube.

Steps to recreate:

`>>> from pytube import YouTube

yt = YouTube() yt.from_url(“https://www.youtube.com/watch?v=162yTv8rOS8”) Traceback (most recent call last): File “<stdin>”, line 1, in <module> File “/usr/local/lib/python2.7/site-packages/pytube/api.py”, line 189, in from_url signature = self._get_cipher(stream_map[“s”][i], js_url) File “/usr/local/lib/python2.7/site-packages/pytube/api.py”, line 379, in _get_cipher “issue on GitHub: {0}”.format(e)) pytube.exceptions.CipherError: Couldn’t cipher the signature. Maybe YouTube has changed the cipher algorithm. Notify this issue on GitHub: Could not find JS function u’ur’`

I’ve just noticed this as of today – perhaps YT’s changed their frontend junk again?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7

github_iconTop GitHub Comments

5reactions
ebelliveaucommented, Jun 23, 2016

Don’t be lazy – please merge this soon 😃

1reaction
nficanocommented, Jun 24, 2016

@Vaaron @ebelliveau all fixed. pip install -U pytube

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error When Trying to Download a Stream · Issue #1289 - GitHub
During handling of the above exception, another exception occurred: ... :param str ciphered_signature: The ciphered signature sent in the ...
Read more >
Why is pytube throwing error when downloading youtube video
In the pytube directory, there is a file called cipher.py. Currently, in pytube 11.0.2, the cipher file has a cipher class with an...
Read more >
How to use the pytube.compat.urlopen function in ... - Snyk
To help you get started, we've selected a few pytube.compat.urlopen examples, ... except Exception as e: raise CipherError("Couldn't cipher the signature.
Read more >
API — pytube 12.1.2 documentation
This module contains all logic necessary to decipher the signature. YouTube's strategy to restrict downloading videos is to send a ciphered version of...
Read more >
Pytube To Download Youtube Videos With Python - Studytonight
Pytube is an amazing python library for accessing youtube videos and download them. Download video with just a single line of code and...
Read more >

github_iconTop Related Medium Post

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