Benjamin Loison

Results 438 comments of Benjamin Loison

Python script fourth level decoded Protobuf simplified modified: ```py import requests import blackboxprotobuf import base64 def getBase64Protobuf(message, typedef): data = blackboxprotobuf.encode_message(message, typedef) return base64.b64encode(data, altchars = b'-/').decode('ascii') message = {...

Multiple comments may have been published as I stopped for a while the notification algorithm.

Well this timestamp does not work anymore and now the next page timestamp is `1679071734`. ```bash date -d @1678118400 ``` ``` Mon Mar 6 05:00:00 PM CET 2023 ``` ```bash...

```python print(json.dumps(getCommunityPost(1678118400 + 3600 * 24 * 25)['continuationContents']['itemSectionContinuation']['contents'][0])) ``` ```python print(getCommunityPost(1678118400 + 3600 * 24 * 25)['continuationContents']['itemSectionContinuation']['contents'][0]['backstagePostThreadRenderer']['post']['backstagePostRenderer']['postId']) ``` ``` UgkxWv2lH-5Jn02GWCPtgSz7nieXeclHLoG4 ``` ```python len(communityPosts) ``` ``` 200 ``` ```python 'UgkxWv2lH-5Jn02GWCPtgSz7nieXeclHLoG4' in...

Would answer [the Stack Overflow question 78985164](https://stackoverflow.com/q/78985164).

To verify again that unable to get more than 200 community posts can list first 200 ones and from last continuation timestamp remove one hour per hour until a significant...

Based on [#295#issuecomment-2267626825](https://github.com/Benjamin-Loison/YouTube-operational-API/issues/295#issuecomment-2267626825): Consider last `params['pageToken']` when iterating over YouTube operational API `channels?part=community` ```python import requests import blackboxprotobuf import base64 import time import math from datetime import datetime, timedelta import...

Note that first timestamp returned in `nextPageToken` (1723118400) is not current one (1726330724).

Output: ``` len(items)=11 len(communityPostIds)=1 itemId='UgkxcxV7Qq6yTy5-FBD38rzT1QgsF0Cupp0P' len(communityPostIds)=2 itemId='Ugkxzyywo6bsQTmBUvT89JYe6CnGbmgUAh9P' len(communityPostIds)=3 itemId='UgkxWLLktHUnKYdIzB2ZK3k5XXhAmq4aIUhk' len(communityPostIds)=4 itemId='UgkxSOM8vhs8WWAZ_hyt_krpc4XP5zxn0cvE' len(communityPostIds)=5 itemId='Ugkxb_XpJw6TW54XAi0XCrksaB-fGC4KrhI4' len(communityPostIds)=6 itemId='UgkxfKdiNrqkVEPGolIrpGltT_DKkuq3IbQ8' len(communityPostIds)=7 itemId='UgkxGGKtVqEkj6nouKdFKbF6DTpJST-qSnnd' len(communityPostIds)=8 itemId='UgkxUvJ3Jxtx3M6ufHHwhviZf4JiIieeuj4P' len(communityPostIds)=9 itemId='UgkxcYUEsdLfuvKVc6PP0H3P2WgFKI_ZLuWk' len(communityPostIds)=10 itemId='Ugkxzv2Td_uS9Aw5BkK1KKW_1Pt5ptTKpjbn' timestamp=1723118400 len(items)=11 len(communityPostIds)=10 itemId='Ugkxzv2Td_uS9Aw5BkK1KKW_1Pt5ptTKpjbn' len(communityPostIds)=11 itemId='Ugkx254iv-3nYTslcU_lK0PKr-kwnGgvmrlm' len(communityPostIds)=12...

[Webscrap_any_website/issues/29#issuecomment-2319819](https://codeberg.org/Benjamin_Loison/Webscrap_any_website/issues/29#issuecomment-2319819) and following comments shows that we can generate quite easily our own channel with more than 200 community posts in more than 48 hours.