pytube-Youtube function not initializing
I have pytube
installed, i am getting an error when i run it(I am using python 3.7), the problem seems to be with the pytube
itself ,i am using exact code of tutorials for this module.
import pytube
link ='https://www.youtube.com/watch?v=9bZkp7q19f0'
yt = pytube.YouTube(link)
stream = yt.streams.first()
finished = stream.download()
print('Download is complete')
Traceback (most recent call last):
File "C:automate the boring stuffyoutubetry.py", line 6, in <module>
yt = pytube.YouTube(link)
File "C:UsersdiodiAppDataLocalProgramsPythonPython37-32libsite-packagespytube__main__.py", line 88, in __init__
self.prefetch_init()
[Finished in 6.0s with exit code 1]
python python-3.x youtube
add a comment |
I have pytube
installed, i am getting an error when i run it(I am using python 3.7), the problem seems to be with the pytube
itself ,i am using exact code of tutorials for this module.
import pytube
link ='https://www.youtube.com/watch?v=9bZkp7q19f0'
yt = pytube.YouTube(link)
stream = yt.streams.first()
finished = stream.download()
print('Download is complete')
Traceback (most recent call last):
File "C:automate the boring stuffyoutubetry.py", line 6, in <module>
yt = pytube.YouTube(link)
File "C:UsersdiodiAppDataLocalProgramsPythonPython37-32libsite-packagespytube__main__.py", line 88, in __init__
self.prefetch_init()
[Finished in 6.0s with exit code 1]
python python-3.x youtube
add a comment |
I have pytube
installed, i am getting an error when i run it(I am using python 3.7), the problem seems to be with the pytube
itself ,i am using exact code of tutorials for this module.
import pytube
link ='https://www.youtube.com/watch?v=9bZkp7q19f0'
yt = pytube.YouTube(link)
stream = yt.streams.first()
finished = stream.download()
print('Download is complete')
Traceback (most recent call last):
File "C:automate the boring stuffyoutubetry.py", line 6, in <module>
yt = pytube.YouTube(link)
File "C:UsersdiodiAppDataLocalProgramsPythonPython37-32libsite-packagespytube__main__.py", line 88, in __init__
self.prefetch_init()
[Finished in 6.0s with exit code 1]
python python-3.x youtube
I have pytube
installed, i am getting an error when i run it(I am using python 3.7), the problem seems to be with the pytube
itself ,i am using exact code of tutorials for this module.
import pytube
link ='https://www.youtube.com/watch?v=9bZkp7q19f0'
yt = pytube.YouTube(link)
stream = yt.streams.first()
finished = stream.download()
print('Download is complete')
Traceback (most recent call last):
File "C:automate the boring stuffyoutubetry.py", line 6, in <module>
yt = pytube.YouTube(link)
File "C:UsersdiodiAppDataLocalProgramsPythonPython37-32libsite-packagespytube__main__.py", line 88, in __init__
self.prefetch_init()
[Finished in 6.0s with exit code 1]
python python-3.x youtube
python python-3.x youtube
edited Jan 10 at 6:19
wishmaster
asked Nov 25 '18 at 22:57
wishmasterwishmaster
1569
1569
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
I had this issue last week. Since I'm on Ubuntu, what worked for me was navigating to:
/home/<username>/anaconda3/lib/python3.6/site-packages/pytube
and adding
r'bcs*&&s*d.set([^,]+,.*?((?P<sig>[a-zA-Z0-9$]+)((0s*,s*window.decodeURIComponent'
to the list of patterns in the get_initial_function_name()
function in cipher.py
. The error was further discussed in this Github thread.
@eyllanesc kind of work it looks,.js
for All youtube 'Vevo' videos has changed,strangely other than Vevo still some work some don't.
– wishmaster
Nov 26 '18 at 7:40
@timmy I have not written the answer, just edit it to make it look better
– eyllanesc
Nov 26 '18 at 7:42
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53472840%2fpytube-youtube-function-not-initializing%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I had this issue last week. Since I'm on Ubuntu, what worked for me was navigating to:
/home/<username>/anaconda3/lib/python3.6/site-packages/pytube
and adding
r'bcs*&&s*d.set([^,]+,.*?((?P<sig>[a-zA-Z0-9$]+)((0s*,s*window.decodeURIComponent'
to the list of patterns in the get_initial_function_name()
function in cipher.py
. The error was further discussed in this Github thread.
@eyllanesc kind of work it looks,.js
for All youtube 'Vevo' videos has changed,strangely other than Vevo still some work some don't.
– wishmaster
Nov 26 '18 at 7:40
@timmy I have not written the answer, just edit it to make it look better
– eyllanesc
Nov 26 '18 at 7:42
add a comment |
I had this issue last week. Since I'm on Ubuntu, what worked for me was navigating to:
/home/<username>/anaconda3/lib/python3.6/site-packages/pytube
and adding
r'bcs*&&s*d.set([^,]+,.*?((?P<sig>[a-zA-Z0-9$]+)((0s*,s*window.decodeURIComponent'
to the list of patterns in the get_initial_function_name()
function in cipher.py
. The error was further discussed in this Github thread.
@eyllanesc kind of work it looks,.js
for All youtube 'Vevo' videos has changed,strangely other than Vevo still some work some don't.
– wishmaster
Nov 26 '18 at 7:40
@timmy I have not written the answer, just edit it to make it look better
– eyllanesc
Nov 26 '18 at 7:42
add a comment |
I had this issue last week. Since I'm on Ubuntu, what worked for me was navigating to:
/home/<username>/anaconda3/lib/python3.6/site-packages/pytube
and adding
r'bcs*&&s*d.set([^,]+,.*?((?P<sig>[a-zA-Z0-9$]+)((0s*,s*window.decodeURIComponent'
to the list of patterns in the get_initial_function_name()
function in cipher.py
. The error was further discussed in this Github thread.
I had this issue last week. Since I'm on Ubuntu, what worked for me was navigating to:
/home/<username>/anaconda3/lib/python3.6/site-packages/pytube
and adding
r'bcs*&&s*d.set([^,]+,.*?((?P<sig>[a-zA-Z0-9$]+)((0s*,s*window.decodeURIComponent'
to the list of patterns in the get_initial_function_name()
function in cipher.py
. The error was further discussed in this Github thread.
edited Nov 26 '18 at 3:58
eyllanesc
84k103562
84k103562
answered Nov 26 '18 at 3:54
TimD1TimD1
663918
663918
@eyllanesc kind of work it looks,.js
for All youtube 'Vevo' videos has changed,strangely other than Vevo still some work some don't.
– wishmaster
Nov 26 '18 at 7:40
@timmy I have not written the answer, just edit it to make it look better
– eyllanesc
Nov 26 '18 at 7:42
add a comment |
@eyllanesc kind of work it looks,.js
for All youtube 'Vevo' videos has changed,strangely other than Vevo still some work some don't.
– wishmaster
Nov 26 '18 at 7:40
@timmy I have not written the answer, just edit it to make it look better
– eyllanesc
Nov 26 '18 at 7:42
@eyllanesc kind of work it looks,
.js
for All youtube 'Vevo' videos has changed,strangely other than Vevo still some work some don't.– wishmaster
Nov 26 '18 at 7:40
@eyllanesc kind of work it looks,
.js
for All youtube 'Vevo' videos has changed,strangely other than Vevo still some work some don't.– wishmaster
Nov 26 '18 at 7:40
@timmy I have not written the answer, just edit it to make it look better
– eyllanesc
Nov 26 '18 at 7:42
@timmy I have not written the answer, just edit it to make it look better
– eyllanesc
Nov 26 '18 at 7:42
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53472840%2fpytube-youtube-function-not-initializing%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown