MCPcopy Index your code
hub / github.com/geekcomputers/Python / update

Method update

spotifyAccount.py:32–41  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

30
31class proxy:
32 def update(self):
33 while True:
34 data = ""
35 urls = [
36 "https://api.proxyscrape.com/?request=getproxies&proxytype=socks4&timeout=10000&ssl=yes"
37 ]
38 for url in urls:
39 data += requests.get(url).text
40 self.splited += data.split("\r\n") # scraping and splitting proxies
41 time.sleep(600)
42
43 def get_proxy(self):
44 random1 = random.choice(self.splited) # choose a random proxie

Callers 7

get_headlinesFunction · 0.45
polygon.pyFile · 0.45
addToListMethod · 0.45
Memory_game.pyFile · 0.45
getWeatherFunction · 0.45
recognizingFunction · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected