Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from random import choice
- from requests import get
- def get_id():
- alphabet = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890---------__________"
- id = ""
- for _ in range(10):
- id += choice(alphabet)
- return id
- videos = list()
- while True:
- id = get_id()
- if get("https://www.youtube.com/oembed?format=json&url=https://www.youtube.com/watch?v=" + id).status_code == 200:
- videos.append("https://www.youtube.com/watch&v=" + id)
- print("https://www.youtube.com/watch&v=" + id)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement