[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: (was Re: Adding a description text property for a track) non-free ja
From: |
Yuchen Pei |
Subject: |
Re: (was Re: Adding a description text property for a track) non-free javascript and ytdl |
Date: |
Fri, 25 Mar 2022 15:51:56 +1100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
On Thu 2022-03-24 16:16:05 +0100, Alexandre Garreau wrote:
> Le merkredo, 23-a de marto 2022, 22-a horo kaj 14:01 CET Yuchen Pei a écrit :
>
>> On Wed 2022-03-23 20:32:36 +0100, Alexandre Garreau wrote:
>
>>
>
>> 
>
>>
>
>> > I don’t see how GET/POST is related: you can use POST without any
>
>> > javascript (both POST and PUT existed before javascript), while for
>
>> > youtube, even any GET statement provides nothing but a blank page,
>
>> > and you need to execute javascript to get anything.
>
>>
>
>> You can download a yt video by GET only:
>
> my point about POST being unrelated to javascript still holds;
>
>> wget -O- 2>/dev/null https://youtube.com/watch?v=dQw4w9WgXcQ | grep
> -oP
>
>> 'ytInitialPlayerResponse\s*=\s*(.+)\s*;</script>' | grep -o '\{.*\}' |
>
>> jq .
>
>>
>
>> There you get a json with all the video / audio formats and their links.
>
> actually that’s an interesting exemple because, as I said, this too actually
> amounts to interpreting a (although smaller) subset of javascript…
>
There's parsing, but no execution, so that's ok.
Best,
Yuchen
--
PGP Key: 47F9 D050 1E11 8879 9040 4941 2126 7E93 EF86 DFD0
<https://ypei.org/assets/ypei-pubkey.txt>
- Re: Adding a description text property for a track, (continued)
- Re: Adding a description text property for a track, Yoni Rabkin, 2022/03/16
- Re: Adding a description text property for a track, Yuchen Pei, 2022/03/17
- (was Re: Adding a description text property for a track) non-free javascript and ytdl, Yoni Rabkin, 2022/03/17
- Re: (was Re: Adding a description text property for a track) non-free javascript and ytdl, Yoni Rabkin, 2022/03/18
- Re: (was Re: Adding a description text property for a track) non-free javascript and ytdl, Alexandre Garreau, 2022/03/18
- Re: (was Re: Adding a description text property for a track) non-free javascript and ytdl, Yuchen Pei, 2022/03/23
- Re: (was Re: Adding a description text property for a track) non-free javascript and ytdl, Alexandre Garreau, 2022/03/23
- Re: (was Re: Adding a description text property for a track) non-free javascript and ytdl, Yuchen Pei, 2022/03/23
- Re: (was Re: Adding a description text property for a track) non-free javascript and ytdl, Yuchen Pei, 2022/03/23
- Re: (was Re: Adding a description text property for a track) non-free javascript and ytdl, Alexandre Garreau, 2022/03/24
- Re: (was Re: Adding a description text property for a track) non-free javascript and ytdl,
Yuchen Pei <=
- Re: (was Re: Adding a description text property for a track) non-free javascript and ytdl, Alexandre Garreau, 2022/03/26
- Re: (was Re: Adding a description text property for a track) non-free javascript and ytdl, Yuchen Pei, 2022/03/26
- Re: (was Re: Adding a description text property for a track) non-free javascript and ytdl, Alexandre Garreau, 2022/03/27
- Re: (was Re: Adding a description text property for a track) non-free javascript and ytdl, Yuchen Pei, 2022/03/31
- Re: (was Re: Adding a description text property for a track) non-free javascript and ytdl, Yuchen Pei, 2022/03/22
- Re: (was Re: Adding a description text property for a track) non-free javascript and ytdl, Yuchen Pei, 2022/03/25
- Re: (was Re: Adding a description text property for a track) non-free javascript and ytdl, Yoni Rabkin, 2022/03/25
- Re: (was Re: Adding a description text property for a track) non-free javascript and ytdl, Yuchen Pei, 2022/03/26
- Re: Adding a description text property for a track, Yuchen Pei, 2022/03/15
- Re: Adding a description text property for a track, Yoni Rabkin, 2022/03/25