Advertisement
Guest User

Untitled

a guest
Nov 5th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.58 KB | None | 0 0
  1. #!/usr/bin/env python3
  2.  
  3. import requests, subprocess, time
  4.  
  5. base_link = "https://chaturbate.com/"
  6. cb_profiles = ["lana_rain/", "not_your_waifu/", "terror_candy/", "tricky_nymph/"]
  7.  
  8. devnull = subprocess.DEVNULL
  9.  
  10. while True:
  11.  
  12.     for profile in cb_profiles:
  13.  
  14.         room = base_link + profile
  15.         html = requests.get(room).text
  16.  
  17.         if not "Room is currently offline" in html:
  18.  
  19.             if not subprocess.call(["pgrep", "-f", room], stdout=devnull) == 0:
  20.  
  21.                 subprocess.Popen(["youtube-dl", room], stdout=devnull, stderr=devnull)
  22.  
  23.     time.sleep(30)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement