Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python3
- import requests, subprocess, time
- base_link = "https://chaturbate.com/"
- cb_profiles = ["lana_rain/", "not_your_waifu/", "terror_candy/", "tricky_nymph/"]
- devnull = subprocess.DEVNULL
- while True:
- for profile in cb_profiles:
- room = base_link + profile
- html = requests.get(room).text
- if not "Room is currently offline" in html:
- if not subprocess.call(["pgrep", "-f", room], stdout=devnull) == 0:
- subprocess.Popen(["youtube-dl", room], stdout=devnull, stderr=devnull)
- time.sleep(30)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement