Category : youtube

I’m having issues with pytube on raspberry pi 4b running python 3.7 Im getting this error code >>> %Run Pyoutube_downloader https://www.youtube.com/watch?v=-QLVxOvESf4 Traceback (most recent call last): File "/home/pi/Documents/My_Scripts/Pyoutube_downloader", line 5, in <module> yt = YouTube(link) File "/home/pi/.local/lib/python3.7/site-packages/pytube/__main__.py", line 71, in __init__ self.video_id = extract.video_id(url) File "/home/pi/.local/lib/python3.7/site-packages/pytube/extract.py", line 162, in video_id return regex_search(r"(?:v=|/)([0-9A-Za-z_-]{11}).*", url, group=1) File ..

Read more

stats = [] for i in range(0, len(video_ids), 40): res = youtube.videos().list( id=’,’.join(video_ids[i:i+40]), part=’statistics’ ).execute() stats+=res[‘items’] views, links = [], [] for i in range(len(videos[:10])): try: title = (videos[i][‘snippet’][‘title’]) view = (stats[i][‘statistics’][‘viewCount’]) link = f"<a href='{stats[i][‘id’]}’>{title}</a" except KeyError: continue else: views.append(view) links.append(link) I’d like to retrieve the top 10 videos with the most views. I’m ..

Read more

I’m trying to build a Youtube downloader app using Python. When I put link on the field – appears this issue Exception in Tkinter callback Traceback (most recent call last): File "C:UserstruemaxevansAppDataLocalProgramsPythonPython38libtkinter__init__.py", line 1883, in __call__ return self.func(*args) File "C:/Users/truemaxevans/PycharmProjects/pythonProject25/main.py", line 57, in __get_link self.downloader(link, path, name, ext) File "C:/Users/truemaxevans/PycharmProjects/pythonProject25/main.py", line 45, in downloader yt ..

Read more

This is my code: from googleapiclient.discovery import build api_key = ‘not revealing the api key lol’ youtube = build("youtube",’v3′,api_key) request = youtube.channels().list(part="statistics",forUsername=’schafer5′) print(request.execute()) this is the output: Traceback (most recent call last): File "C:UsersBittner 2015 desktopRequestsmain.py", line 9, in print(request.execute()) File "C:UsersBittner 2015 desktopRequestsvenvlibsite- packagesgoogleapiclient_helpers.py", line 134, in positional_wrapper return wrapped(*args, **kwargs) File "C:UsersBittner 2015 ..

Read more

I am using youtube-upload to upload videos to youtube and having this error. Traceback (most recent call last): File "/usr/local/bin/youtube-upload", line 10, in <module> main.run() File "/usr/local/lib/python3.8/dist-packages/youtube_upload/main.py", line 290, in run sys.exit(lib.catch_exceptions(EXIT_CODES, main, sys.argv[1:])) File "/usr/local/lib/python3.8/dist-packages/youtube_upload/lib.py", line 44, in catch_exceptions fun(*args, **kwargs) File "/usr/local/lib/python3.8/dist-packages/youtube_upload/main.py", line 283, in main run_main(parser, options, args) File "/usr/local/lib/python3.8/dist-packages/youtube_upload/main.py", line 196, ..

Read more