Benjamin Loison

Results 438 comments of Benjamin Loison

000webhost problem is that they don't support HTTPS for free. Following code can't work as wanted. ```php if($_SERVER['HTTP_HOST'] === 'yt3.lemnoslife.com') { header('Location: https://histoid-scheduler.000webhostapp.com' . $_SERVER['REQUEST_URI']); } ``` Go to https://www.000webhost.com/members/website/WEBSITE/settings...

An interesting question is: as there is plenty of IPv6, could we only talk to YouTube UI servers with IPv6 to easily switch to another one not to get restricted....

Let us try to proceed by hand first for a web-scraping usage: https://www.youtube.com/playlist?list=UUWeg2Pkate69NFdBeuRFTAw (with a private Firefox window) ```bash minimizeCURL curl.sh 'XrruklOv8X0' ``` Note that minimizing on field name `playlistVideoRenderer`...

Let us proceed by hand for a YouTube Data API v3 usage now: https://www.youtube.com/playlist?list=UUWeg2Pkate69NFdBeuRFTAw Looking for entry `75`: `rntZOALPknU`. Retrieve first YouTube Data API v3 playlistItems nextPageToken: ```py import requests...

Can avoid multiple `getBase64Protobuf` calls? While concatenation seems more difficult, simple use, as [this script](https://github.com/Benjamin-Loison/YouTube-operational-API/issues/256#issuecomment-2003876840) would be need would be nice.

If have a decoding base64 error, do not pay attention to it and protobuf decode anyway thanks to `base64.urlsafe_b64decode`. Should investigate the deep reason for this. Precising `altchars = '-/'`...

Note that `.decode('ascii')` in `base64.b64encode(data).decode('ascii')` does not seem necessary but removing it is debatable in my opinion, I prefer strings over arrays of bytes.

Even with [considering double base64 encoding](https://github.com/Benjamin-Loison/YouTube-operational-API/issues/257#issuecomment-2019061237) I am unable to make progress.

Could integrate to `minimizeCURL.py` by automatically detecting fields being Protobuf encoded.

Maybe first having an explicit request generator not relying on Base64 black box would be a good start.