mirror of
https://github.com/iv-org/youtube-trusted-session-generator.git
synced 2024-11-26 15:40:34 +00:00
add sleep for 30 for slower connections
This commit is contained in:
parent
174651a5a6
commit
8e3cd89495
3
index.py
3
index.py
@ -29,7 +29,8 @@ async def main():
|
||||
await button_play.click()
|
||||
print("[INFO] click on first youtube video.")
|
||||
await iframe_tab.wait(cdp.network.RequestWillBeSent)
|
||||
time.sleep(5)
|
||||
print("[INFO] waiting additional 30 seconds for slower connections.")
|
||||
await tab.sleep(30)
|
||||
|
||||
async def send_handler(event: cdp.network.RequestWillBeSent):
|
||||
if "/youtubei/v1/player" in event.request.url:
|
||||
|
Loading…
Reference in New Issue
Block a user