Benjamin Loison

Results 489 comments of Benjamin Loison

Related to [Webscrap_any_website/issues/38](https://codeberg.org/Benjamin_Loison/Webscrap_any_website/issues/38).

If exhaustively and regularly tested can quickly jump to the unit test and verify that it still works fine and then can provide the unit test video id and if...

It seems that [a potentially not considered YouTube Data API v3 error that I faced](https://discord.com/channels/933841502155706418/933841503103627316/1209045055642411050) may break the no-key endpoint. Just a reminder of the well-known YouTube Data API v3...

Previously used: ```python #!/usr/bin/python3 import requests import json def curl(url): return requests.get(url).json() with open('keys.txt') as f: lines = f.read().splitlines() for line in lines: print(line) url = f'https://www.googleapis.com/youtube/v3/videos?part=snippet&id=_-MNbRpjSa0&key={line}' contentJSON = curl(url)...

``` The YouTube operational API instance `yt` `noKey/videos` is not working correctly! ``` ```bash ./test.py ``` ``` correct=1 quotaExceeded=1432 toRemove=0: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1433/1433 [02:20

```bash wc -l ~/yt/ytPrivate/keys.txt ``` ``` 1431 /var/www/yt/ytPrivate/keys.txt ``` ```bash cp ~/keys.txt ~/yt/ytPrivate/keys.txt && wc -l ~/yt/ytPrivate/keys.txt && python3 test.py && wc -l ~/yt/ytPrivate/keys.txt ``` ``` 3616 /var/www/yt/ytPrivate/keys.txt len(correctKeys)=1416 len(quotaExceededKeys)=2201...

> Well I do not notice currently any issue with the no-key endpoint, I restored my notification system to be notified when an issue is going on. Source: [Discord](https://discord.com/channels/933841502155706418/933841503103627316/1210566737917906954) ```...

It seems to be an encoding issue, [as discussed on Discord](https://discord.com/channels/933841502155706418/933841503103627316/1207325445700190259). [It was proposed](https://discord.com/channels/933841502155706418/933841503103627316/1207329439697080350) to use `urldecode` at https://github.com/Benjamin-Loison/YouTube-operational-API/blob/a1a9a7c3ea738153fc2400ec40ed4a742ef90885/channels.php#L76 but I would prefer a solution at the response sent level...

https://www.php.net/manual/en/json.constants.php https://www.php.net/manual/en/function.json-encode.php