pytomo
pytomo copied to clipboard
Fix SSL and token issues
This PR fixes the missing SSL support and renames "token" to "account_playback_token" inside the video_info struct.
These fixes were needed to make pytomo work when this PR was created.
Hey, so I just tested the PR, but I'm still getting the same error. Do I need to add any parameter when crawling?
./start_crawl.py --no-related https://www.youtube.com/watch?v=iTMyV8UhSi0
...
2019-10-06 16:17:24,392 - start_pytomo.py:860 - DEBUG - input_links: set(['https://www.youtube.com/watch?v=vwIUJbIU57s'])
2019-10-06 16:17:24,393 - start_pytomo.py:757 - DEBUG - Crawl of url# 0: https://www.youtube.com/watch?v=vwIUJbIU57s
2019-10-06 16:17:24,393 - lib_youtube_download.py:288 - DEBUG - instanciate a Youtube FileDownloader with download_time: 30.0
2019-10-06 16:17:24,393 - lib_general_download.py:189 - DEBUG - Max download_time is: 30
2019-10-06 16:17:24,395 - lib_youtube_download.py:293 - DEBUG - Download webpage vwIUJbIU57s
2019-10-06 16:17:24,746 - lib_general_download.py:374 - DEBUG - trouble message: ERROR: YouTube said: HTTP is not supported.
2019-10-06 16:17:24,747 - lib_youtube_download.py:319 - ERROR - ERROR: YouTube said: HTTP is not supported.
@jacksgt with current state of the code I don't encounter that error at all. I added forcing of https as a new commit, could you test it..?
@jussihi Thank you, with the added HTTPS enforcement it works - now I can actually start working on the assignment ;-)