Advertisement
DeaD_EyE

umfrage ohne ip-sperre?

Jul 7th, 2020
1,709
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.53 KB | None | 0 0
  1. import time
  2. import requests
  3.  
  4.  
  5.  
  6. url1 = "https://www.mdr.de/sachsen-anhalt/voting-ende-maskenpflicht-handel-100.html"
  7. url2 = "https://www.mdr.de/sachsen-anhalt/voting-ende-maskenpflicht-handel-100-votejs.html"
  8.  
  9. session = requests.Session()
  10. while True:
  11.     for i in range(10):
  12.         req1 = session.get(url1)
  13.         time.sleep(0.1)
  14.         req2 = session.post(url2, params={"fieldValues[voting-ende-maskenpflicht-handel-100]": "1"})
  15.         if req2.status_code == 200:
  16.             print(".", end="")
  17.     print()
  18.     time.sleep(0.5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement