Dicklesworthstone / bulk_transcribe_youtube_videos_from_playlist

Easily take an entire YouTube playlist and turn it into high quality transcripts using Whisper.
MIT License
429 stars 37 forks source link

HTTP Error 400: Bad Request trying to transcribe ANY video #8

Closed jonathanlyon closed 1 month ago

jonathanlyon commented 1 month ago

I've tried everything I can to try and get this to work and I'm out of ideas now. I have tried different python versions and the same issue persists - HTTP Error 400: Bad Request.

system 3.8.19 * 3.12.4

My system version is 3.9.6 and I'm on a mac-mini M1 and believed the 3020 urlib3 issue was to blame but despite trying different versions of python, I'm still getting the same error.

https://github.com/urllib3/urllib3/issues/3020

Any ideas?

Thanks

Jonathan

Screenshot 2024-07-19 at 11 37 33 PM

jonathanlyon commented 1 month ago

seems like it is the urllib3 issue, I just tried a different script and it failed with the same error:-

I have no idea how to fix this now and would welcome any ideas :-)

Thanks

Jonathan

Screenshot 2024-07-20 at 12 58 15 AM

Dicklesworthstone commented 1 month ago

Try using pyenv and python 3.12. Also past the source code and your error message into chatgpt gpt-4o and it will solve it for you.

On Fri, Jul 19, 2024 at 9:01 AM Jonathan Lyon @.***> wrote:

seems like it is the urllib3 issue, I just tried a different script and it failed with the same error:-

I have no idea how to fix this now and would welcome any ideas :-)

Thanks

Jonathan

Screenshot.2024-07-20.at.12.58.15.AM.png (view on web) https://github.com/user-attachments/assets/838ac8b3-668e-419d-a91e-b3ba502e20eb

— Reply to this email directly, view it on GitHub https://github.com/Dicklesworthstone/bulk_transcribe_youtube_videos_from_playlist/issues/8#issuecomment-2239082928, or unsubscribe https://github.com/notifications/unsubscribe-auth/AILNF3VZWBLYZ3GP7HJMSGLZNEEZDAVCNFSM6AAAAABLEN24A6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZZGA4DEOJSHA . You are receiving this because you are subscribed to this thread.Message ID: <Dicklesworthstone/bulk_transcribe_youtube_videos_from_playlist/issues/8/2239082928 @github.com>

Mungoid commented 1 month ago

Ran into the same issue and I'm not sure if YT made some changes but i found using Pytubefix instead of Pytube seems to be working: https://pypi.org/project/pytubefix/

Dicklesworthstone commented 1 month ago

Ah yes I think you’re right, I will test and make that change, too. Thanks for letting me know

On Tue, Jul 23, 2024 at 2:06 PM Matt V @.***> wrote:

Ran into the same issue and I'm not sure if YT made some changes but i found using Pytubefix instead of Pytube seems to be working: https://pypi.org/project/pytubefix/

— Reply to this email directly, view it on GitHub https://github.com/Dicklesworthstone/bulk_transcribe_youtube_videos_from_playlist/issues/8#issuecomment-2245919031, or unsubscribe https://github.com/notifications/unsubscribe-auth/AILNF3TGVTEG7UJLSTE5NP3ZN2LSJAVCNFSM6AAAAABLEN24A6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBVHEYTSMBTGE . You are receiving this because you commented.Message ID: <Dicklesworthstone/bulk_transcribe_youtube_videos_from_playlist/issues/8/2245919031 @github.com>

jonathanlyon commented 1 month ago

awesome, thank you, I'm looking forward to trying it out, I appreciate your efforts!

Thanks

Jonathan

Dicklesworthstone commented 1 month ago

@Mungoid Can confirm that this fixes the problem, thank you!