Thank bro.
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.
import requests
from time import sleep
def send_traffic(url, duration=60):
# Set up proxies if needed
proxies = {}
if 'proxies' in locals():
proxies['http'] = proxies['http'].split()
proxies['https'] = proxies['https'].split()
proxies['http'] = proxies['http'][0]
proxies['https'] = proxies['https'][0]
response = requests.get(url, headers={'User-Agent': 'Mozilla/5.0'}, proxies=proxies)
print('Sending traffic to', url)
if response.status_code == 200:
print('Success')
else:
print('Failed')
sleep(duration)
print('Traffic sent. Press any key to exit...')
input().read()