How to find link to video file from URL - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html) +--- Thread: How to find link to video file from URL (/thread-37191.html) |
RE: How to find link to video file from URL - Pavel_47 - Jun-13-2022 (Jun-12-2022, 01:49 PM)Axel_Erfurt Wrote: I have Linux Mint, mpv and celluloid (based on mpv) doesn't show subtitles even though you can select them. Did you try to rename .vtt file (e.g. .vtt --> .vkk), then play video in VLC ? Are the subtitles still visible? RE: How to find link to video file from URL - Pavel_47 - Jun-23-2022 It seems that ARTE once again changed the format of their pages. Anyway, yt-dlp no longer works:
RE: How to find link to video file from URL - snippsat - Jun-23-2022 Pavel_47 Wrote:It seems that ARTE once again changed the format of their pages.No it's still working using the mod in post #12 Don't know it they have updated that new pull requests of arte.py into the new version of yt-dlpYou most update(which mean install a new version of Python) Python 3.6 many libraries has or will be dropping support for Python 3.6. (arte_env) G:\1_youtube\arte_env λ yt-dlp https://www.arte.tv/en/videos/104840-002-A/42-the-answer-to-almost-everything/ [ArteTV] 104840-002-A: Downloading JSON metadata [ArteTV] 104840-002-A: Downloading m3u8 information [ArteTV] 104840-002-A: Downloading m3u8 information [ArteTV] 104840-002-A: Downloading m3u8 information [ArteTV] 104840-002-A: Downloading m3u8 information [ArteTV] 104840-002-A: Downloading m3u8 information [info] 104840-002-A: Downloading 1 format(s): VOEU-STE_ANG_-2328+VOEU-STE_ANG_-program_audio_0-VOEU [hlsnative] Downloading m3u8 manifest [hlsnative] Total fragments: 279 [download] Destination: 42 - The Answer to Almost Everything [104840-002-A].fVOEU-STE_ANG_-2328.mp4 [download] 100% of 875.95MiB in 03:59 [hlsnative] Downloading m3u8 manifest [hlsnative] Total fragments: 279 [download] Destination: 42 - The Answer to Almost Everything [104840-002-A].fVOEU-STE_ANG_-program_audio_0-VOEU.mp4 [download] 100% of 51.99MiB in 01:19 [Merger] Merging formats into "42 - The Answer to Almost Everything [104840-002-A].mp4" Deleting original file 42 - The Answer to Almost Everything [104840-002-A].fVOEU-STE_ANG_-program_audio_0-VOEU.mp4 (pass -k to keep) Deleting original file 42 - The Answer to Almost Everything [104840-002-A].fVOEU-STE_ANG_-2328.mp4 (pass -k to keep) RE: How to find link to video file from URL - Pavel_47 - Jun-23-2022 Well ... everything worked after modifications, suggested by Axel_Erfurt. But since yesterday it doesn't work anymore. Did you update anything to make it work on your side ?
RE: How to find link to video file from URL - snippsat - Jun-23-2022 You most (Jun-23-2022, 12:58 PM)Pavel_47 Wrote: Did you update anything to make it work on your side ?You may have updated the version then the working arte.py will be overwritten. Follow way post #12 Also copy file arte.py an overwrite the original one in your environment. Test of the new version. G:\1_youtube λ python -V Python 3.10.5 G:\1_youtube λ python -m venv new_env G:\1_youtube λ cd new_env\ G:\1_youtube\new_env λ G:\1_youtube\new_env\Scripts\activate (new_env) G:\1_youtube\new_env λ pip install -U yt-dlp Collecting yt-dlp Downloading yt_dlp-2022.6.22.1-py2.py3-none-any.whl (2.6 MB) ..... (new_env) G:\1_youtube\new_env λ yt-dlp https://www.arte.tv/en/videos/104840-002-A/42-the-answer-to-almost-everything/ [ArteTV] 104840-002-A: Downloading JSON metadata ERROR: [ArteTV] 104840-002-A: Unable to download JSON metadata: HTTP Error 404: Not Found (caused by <HTTPError 404: 'Not Found'>); please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -USo they have not updated the new version,so you most use the hack as described before. RE: How to find link to video file from URL - Pavel_47 - Jun-28-2022 I've updated arte.py once more from here: https://raw.githubusercontent.com/fstirlitz/yt-dlp/arte-v2/yt_dlp/extractor/arte.py It didn't help.
RE: How to find link to video file from URL - snippsat - Jun-28-2022 (Jun-28-2022, 09:58 AM)Pavel_47 Wrote: I've updated arte.py once more from here:The you doing something wrong,as it still work as descripted in post #12 I have not change since i did it,here is a test. (arte_env) G:\1_youtube\arte_env λ yt-dlp https://www.arte.tv/fr/videos/065287-001-A/beau-sejour-1-10/ [ArteTV] 065287-001-A: Downloading JSON metadata WARNING: [ArteTV] Video is geo restricted. Retrying extraction with fake IP 53.131.51.148 (DE) as X-Forwarded-For. [ArteTV] 065287-001-A: Downloading JSON metadata [ArteTV] 065287-001-A: Downloading m3u8 information [ArteTV] 065287-001-A: Downloading m3u8 information [ArteTV] 065287-001-A: Downloading m3u8 information [ArteTV] 065287-001-A: Downloading m3u8 information [info] 065287-001-A: Downloading 1 format(s): VF-STF-2323+VF-STF-program_audio_0-VF [hlsnative] Downloading m3u8 manifest [hlsnative] Total fragments: 493 [download] Destination: Beau séjour (1_10) [065287-001-A].fVF-STF-2323.mp4 [download] 0.1% of ~372.17GiB at 4.96MiB/s ETA 21:20:11 RE: How to find link to video file from URL - Pavel_47 - Jun-28-2022 Here is the file arte.py I've just updated: 14.2kB What is the size of your version ? RE: How to find link to video file from URL - Pavel_47 - Jun-28-2022 I recreated the virtual environment and replaced arte.py in it with an updated version. Now it works. Probably something else (I mean not only arte.py) were corrupted in the old virtual environment. |