Skip to content

Problem during runtime #6

@benjaminsabella

Description

@benjaminsabella

(0) Get last videos of some channel (by it's id)
(1) Get channel id by it's name
(2) Get last videos by some search query
What do you want to do
0
Print channel id UC8pOnl4XYXcKfZ_aWBO0o_A
Print folder_name videos
0%| | 0/50 [00:01<?, ?it/s]
Traceback (most recent call last):
File "/Users/leki/Downloads/TikTok-content-farm-master/pytube/main.py", line 181, in fmt_streams
extract.apply_signature(stream_manifest, self.vid_info, self.js)
File "/Users/leki/Downloads/TikTok-content-farm-master/pytube/extract.py", line 409, in apply_signature
cipher = Cipher(js=js)
File "/Users/leki/Downloads/TikTok-content-farm-master/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 "/Users/leki/Downloads/TikTok-content-farm-master/main.py", line 83, in
download_channel_videos(channel_id, folder)
File "/Users/leki/Downloads/TikTok-content-farm-master/main.py", line 52, in download_channel_videos
yt.streams
File "/Users/leki/Downloads/TikTok-content-farm-master/pytube/main.py", line 296, in streams
return StreamQuery(self.fmt_streams)
File "/Users/leki/Downloads/TikTok-content-farm-master/pytube/main.py", line 188, in fmt_streams
extract.apply_signature(stream_manifest, self.vid_info, self.js)
File "/Users/leki/Downloads/TikTok-content-farm-master/pytube/extract.py", line 409, in apply_signature
cipher = Cipher(js=js)
File "/Users/leki/Downloads/TikTok-content-farm-master/pytube/cipher.py", line 33, in init
raise RegexMatchError(
pytube.exceptions.RegexMatchError: init: could not find match for ^\w+\W

System info

  • MacOSX
  • 16gb ram
  • silicone
  • python 3.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions