Closed stopmoclay closed 2 years ago
The edits made to this bot already are INCREDIBLE and I can't thank the dev enough
Thanks :D
as for the error... https://stackoverflow.com/questions/23013220/max-retries-exceeded-with-url-in-requests
will be implementing this https://stackoverflow.com/a/47475019/18516611 right now
Fantastic! One other issue I've had a few times comes from downloading the youtube videos, see below:
Downloading parkour.mp4 from https://www.youtube.com/watch?v=n_Dv4JMiwK8
Traceback (most recent call last):
File "C:\Python310\lib\site-packages\pytube\__main__.py", line 181, in fmt_streams
extract.apply_signature(stream_manifest, self.vid_info, self.js)
File "C:\Python310\lib\site-packages\pytube\extract.py", line 409, in apply_signature
cipher = Cipher(js=js)
File "C:\Python310\lib\site-packages\pytube\cipher.py", line 33, in __init__
raise RegexMatchError(
pytube.exceptions.RegexMatchError: __init__: could not find match for ^\w+\W
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Lucas\Documents\GitHub\JasonLovesDoggoRedditVideoMakerBot\RedditVideoMakerBot\main.py", line 62, in <module>
main()
File "C:\Users\Lucas\Documents\GitHub\JasonLovesDoggoRedditVideoMakerBot\RedditVideoMakerBot\main.py", line 42, in main
download_background()
File "C:\Users\Lucas\Documents\GitHub\JasonLovesDoggoRedditVideoMakerBot\RedditVideoMakerBot\video_creation\background.py", line 37, in download_background
YouTube(uri).streams.filter(res="1080p").first().download(
File "C:\Python310\lib\site-packages\pytube\__main__.py", line 296, in streams
return StreamQuery(self.fmt_streams)
File "C:\Python310\lib\site-packages\pytube\__main__.py", line 188, in fmt_streams
extract.apply_signature(stream_manifest, self.vid_info, self.js)
File "C:\Python310\lib\site-packages\pytube\extract.py", line 409, in apply_signature
cipher = Cipher(js=js)
File "C:\Python310\lib\site-packages\pytube\cipher.py", line 33, in __init__
raise RegexMatchError(
pytube.exceptions.RegexMatchError: __init__: could not find match for ^\w+\W
Fantastic! One other issue I've had a few times comes from downloading the youtube videos, see below:
Downloading parkour.mp4 from https://www.youtube.com/watch?v=n_Dv4JMiwK8 Traceback (most recent call last): File "C:\Python310\lib\site-packages\pytube\__main__.py", line 181, in fmt_streams extract.apply_signature(stream_manifest, self.vid_info, self.js) File "C:\Python310\lib\site-packages\pytube\extract.py", line 409, in apply_signature cipher = Cipher(js=js) File "C:\Python310\lib\site-packages\pytube\cipher.py", line 33, in __init__ raise RegexMatchError( pytube.exceptions.RegexMatchError: __init__: could not find match for ^\w+\W During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\Lucas\Documents\GitHub\JasonLovesDoggoRedditVideoMakerBot\RedditVideoMakerBot\main.py", line 62, in <module> main() File "C:\Users\Lucas\Documents\GitHub\JasonLovesDoggoRedditVideoMakerBot\RedditVideoMakerBot\main.py", line 42, in main download_background() File "C:\Users\Lucas\Documents\GitHub\JasonLovesDoggoRedditVideoMakerBot\RedditVideoMakerBot\video_creation\background.py", line 37, in download_background YouTube(uri).streams.filter(res="1080p").first().download( File "C:\Python310\lib\site-packages\pytube\__main__.py", line 296, in streams return StreamQuery(self.fmt_streams) File "C:\Python310\lib\site-packages\pytube\__main__.py", line 188, in fmt_streams extract.apply_signature(stream_manifest, self.vid_info, self.js) File "C:\Python310\lib\site-packages\pytube\extract.py", line 409, in apply_signature cipher = Cipher(js=js) File "C:\Python310\lib\site-packages\pytube\cipher.py", line 33, in __init__ raise RegexMatchError( pytube.exceptions.RegexMatchError: __init__: could not find match for ^\w+\W
see #42
also the fix is done im just testing it rn
Fantastic! One other issue I've had a few times comes from downloading the youtube videos, see below:
Downloading parkour.mp4 from https://www.youtube.com/watch?v=n_Dv4JMiwK8 Traceback (most recent call last): File "C:\Python310\lib\site-packages\pytube\__main__.py", line 181, in fmt_streams extract.apply_signature(stream_manifest, self.vid_info, self.js) File "C:\Python310\lib\site-packages\pytube\extract.py", line 409, in apply_signature cipher = Cipher(js=js) File "C:\Python310\lib\site-packages\pytube\cipher.py", line 33, in __init__ raise RegexMatchError( pytube.exceptions.RegexMatchError: __init__: could not find match for ^\w+\W During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\Lucas\Documents\GitHub\JasonLovesDoggoRedditVideoMakerBot\RedditVideoMakerBot\main.py", line 62, in <module> main() File "C:\Users\Lucas\Documents\GitHub\JasonLovesDoggoRedditVideoMakerBot\RedditVideoMakerBot\main.py", line 42, in main download_background() File "C:\Users\Lucas\Documents\GitHub\JasonLovesDoggoRedditVideoMakerBot\RedditVideoMakerBot\video_creation\background.py", line 37, in download_background YouTube(uri).streams.filter(res="1080p").first().download( File "C:\Python310\lib\site-packages\pytube\__main__.py", line 296, in streams return StreamQuery(self.fmt_streams) File "C:\Python310\lib\site-packages\pytube\__main__.py", line 188, in fmt_streams extract.apply_signature(stream_manifest, self.vid_info, self.js) File "C:\Python310\lib\site-packages\pytube\extract.py", line 409, in apply_signature cipher = Cipher(js=js) File "C:\Python310\lib\site-packages\pytube\cipher.py", line 33, in __init__ raise RegexMatchError( pytube.exceptions.RegexMatchError: __init__: could not find match for ^\w+\W
see #42
Hmm getting the following error now
Downloading parkour.mp4 from https://www.youtube.com/watch?v=n_Dv4JMiwK8
Traceback (most recent call last):
File "C:\Users\Lucas\Documents\GitHub\JasonLovesDoggoRedditVideoMakerBot\RedditVideoMakerBot\main.py", line 62, in <module>
main()
File "C:\Users\Lucas\Documents\GitHub\JasonLovesDoggoRedditVideoMakerBot\RedditVideoMakerBot\main.py", line 42, in main
download_background()
File "C:\Users\Lucas\Documents\GitHub\JasonLovesDoggoRedditVideoMakerBot\RedditVideoMakerBot\video_creation\background.py", line 37, in download_background
YouTube(uri).streams.filter(res="1080p").first().download(
File "C:\Python310\lib\site-packages\pytube\__main__.py", line 296, in streams
return StreamQuery(self.fmt_streams)
File "C:\Python310\lib\site-packages\pytube\__main__.py", line 181, in fmt_streams
extract.apply_signature(stream_manifest, self.vid_info, self.js)
File "C:\Python310\lib\site-packages\pytube\extract.py", line 409, in apply_signature
cipher = Cipher(js=js)
File "C:\Python310\lib\site-packages\pytube\cipher.py", line 30, in __init__
var_regex = re.compile(r"^$*\w+\W")
File "C:\Python310\lib\re.py", line 251, in compile
return _compile(pattern, flags)
File "C:\Python310\lib\re.py", line 303, in _compile
p = sre_compile.compile(pattern, flags)
File "C:\Python310\lib\sre_compile.py", line 764, in compile
p = sre_parse.parse(p, flags)
File "C:\Python310\lib\sre_parse.py", line 950, in parse
p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0)
File "C:\Python310\lib\sre_parse.py", line 443, in _parse_sub
itemsappend(_parse(source, state, verbose, nested + 1,
File "C:\Python310\lib\sre_parse.py", line 668, in _parse
raise source.error("nothing to repeat",
re.error: nothing to repeat at position 2
I just fixed that error. can you reclone the repo?
I just fixed that error. can you reclone the repo?
I'm still getting the same error even after editing cypher.py, can't figure it out. Also recloned the repo
Are you sure you saved the file?
Yes, Cypher.py current has "var_regex = re.compile(r"^$*\w+\W")"
If I change it back and save, I get a different error also
Can you tell me the exact error that you have with the updated file
Downloading the backgrounds videos... please be patient 🙏
Downloading parkour.mp4 from https://www.youtube.com/watch?v=n_Dv4JMiwK8
Traceback (most recent call last):
File "C:\Users\Lucas\Documents\GitHub\JasonLovesDoggoRedditVideoMakerBot\RedditVideoMakerBot\main.py", line 62, in <module>
main()
File "C:\Users\Lucas\Documents\GitHub\JasonLovesDoggoRedditVideoMakerBot\RedditVideoMakerBot\main.py", line 42, in main
download_background()
File "C:\Users\Lucas\Documents\GitHub\JasonLovesDoggoRedditVideoMakerBot\RedditVideoMakerBot\video_creation\background.py", line 37, in download_background
YouTube(uri).streams.filter(res="1080p").first().download(
File "C:\Python310\lib\site-packages\pytube\__main__.py", line 296, in streams
return StreamQuery(self.fmt_streams)
File "C:\Python310\lib\site-packages\pytube\__main__.py", line 181, in fmt_streams
extract.apply_signature(stream_manifest, self.vid_info, self.js)
File "C:\Python310\lib\site-packages\pytube\extract.py", line 409, in apply_signature
cipher = Cipher(js=js)
File "C:\Python310\lib\site-packages\pytube\cipher.py", line 30, in __init__
var_regex = re.compile(r"^$*\w+\W")
File "C:\Python310\lib\re.py", line 251, in compile
return _compile(pattern, flags)
File "C:\Python310\lib\re.py", line 303, in _compile
p = sre_compile.compile(pattern, flags)
File "C:\Python310\lib\sre_compile.py", line 764, in compile
p = sre_parse.parse(p, flags)
File "C:\Python310\lib\sre_parse.py", line 950, in parse
p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0)
File "C:\Python310\lib\sre_parse.py", line 443, in _parse_sub
itemsappend(_parse(source, state, verbose, nested + 1,
File "C:\Python310\lib\sre_parse.py", line 668, in _parse
raise source.error("nothing to repeat",
re.error: nothing to repeat at position 2
Downloading the backgrounds videos... please be patient 🙏 Downloading parkour.mp4 from https://www.youtube.com/watch?v=n_Dv4JMiwK8 Traceback (most recent call last): File "C:\Users\Lucas\Documents\GitHub\JasonLovesDoggoRedditVideoMakerBot\RedditVideoMakerBot\main.py", line 62, in <module> main() File "C:\Users\Lucas\Documents\GitHub\JasonLovesDoggoRedditVideoMakerBot\RedditVideoMakerBot\main.py", line 42, in main download_background() File "C:\Users\Lucas\Documents\GitHub\JasonLovesDoggoRedditVideoMakerBot\RedditVideoMakerBot\video_creation\background.py", line 37, in download_background YouTube(uri).streams.filter(res="1080p").first().download( File "C:\Python310\lib\site-packages\pytube\__main__.py", line 296, in streams return StreamQuery(self.fmt_streams) File "C:\Python310\lib\site-packages\pytube\__main__.py", line 181, in fmt_streams extract.apply_signature(stream_manifest, self.vid_info, self.js) File "C:\Python310\lib\site-packages\pytube\extract.py", line 409, in apply_signature cipher = Cipher(js=js) File "C:\Python310\lib\site-packages\pytube\cipher.py", line 30, in __init__ var_regex = re.compile(r"^$*\w+\W") File "C:\Python310\lib\re.py", line 251, in compile return _compile(pattern, flags) File "C:\Python310\lib\re.py", line 303, in _compile p = sre_compile.compile(pattern, flags) File "C:\Python310\lib\sre_compile.py", line 764, in compile p = sre_parse.parse(p, flags) File "C:\Python310\lib\sre_parse.py", line 950, in parse p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) File "C:\Python310\lib\sre_parse.py", line 443, in _parse_sub itemsappend(_parse(source, state, verbose, nested + 1, File "C:\Python310\lib\sre_parse.py", line 668, in _parse raise source.error("nothing to repeat", re.error: nothing to repeat at position 2
try swapping instead
re.compile(r"^\$*\w+\W")
It's slightly different but it might work
Downloading the backgrounds videos... please be patient 🙏 Downloading parkour.mp4 from https://www.youtube.com/watch?v=n_Dv4JMiwK8 Traceback (most recent call last): File "C:\Users\Lucas\Documents\GitHub\JasonLovesDoggoRedditVideoMakerBot\RedditVideoMakerBot\main.py", line 62, in <module> main() File "C:\Users\Lucas\Documents\GitHub\JasonLovesDoggoRedditVideoMakerBot\RedditVideoMakerBot\main.py", line 42, in main download_background() File "C:\Users\Lucas\Documents\GitHub\JasonLovesDoggoRedditVideoMakerBot\RedditVideoMakerBot\video_creation\background.py", line 37, in download_background YouTube(uri).streams.filter(res="1080p").first().download( File "C:\Python310\lib\site-packages\pytube\__main__.py", line 296, in streams return StreamQuery(self.fmt_streams) File "C:\Python310\lib\site-packages\pytube\__main__.py", line 181, in fmt_streams extract.apply_signature(stream_manifest, self.vid_info, self.js) File "C:\Python310\lib\site-packages\pytube\extract.py", line 409, in apply_signature cipher = Cipher(js=js) File "C:\Python310\lib\site-packages\pytube\cipher.py", line 30, in __init__ var_regex = re.compile(r"^$*\w+\W") File "C:\Python310\lib\re.py", line 251, in compile return _compile(pattern, flags) File "C:\Python310\lib\re.py", line 303, in _compile p = sre_compile.compile(pattern, flags) File "C:\Python310\lib\sre_compile.py", line 764, in compile p = sre_parse.parse(p, flags) File "C:\Python310\lib\sre_parse.py", line 950, in parse p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) File "C:\Python310\lib\sre_parse.py", line 443, in _parse_sub itemsappend(_parse(source, state, verbose, nested + 1, File "C:\Python310\lib\sre_parse.py", line 668, in _parse raise source.error("nothing to repeat", re.error: nothing to repeat at position 2
try swapping instead
re.compile(r"^\$*\w+\W")
It's slightly different but it might work
This worked! Thank you!
Glad I could help!
The edits made to this bot already are INCREDIBLE and I can't thank the dev enough
However, getting the current error, would love some insight: