Youtube Bot Python
#Code for Video on afreecatv https://play.afreecatv.com/zg8520/239538928"
#pip3 install webrowser
import webrowser, time
url = input("Enter video URL:")
Duration = input("Enter duration:")
for i in range(5):
webrowser.open_new(url)
time.sleep(int(Duration))
# Here is how to set a time out for requests.get in python
# its simple!
import requests
link = 'https://play.afreecatv.com/zg8520/239538928'
request_from_link = requests.get(link, timeout=3)
# this causes the code to call a timeout if the connection or delays in
# between the reads take more than 3 seconds
print(request_from_link)
Morco Debit