import requests
session = requests.Session()
response = session.get('http://gayzooporno.com')
print(session.cookies.get_dict())
headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36',
"Host": "www.mywbsite.fr",
"Connection": "keep-alive",
"Origin": "https://www.mywbsite.fr",
"X-Requested-With": "XMLHttpRequest",
"Content-Type": "application/json",
"Accept": "*/*",
"Accept-Encoding": "gzip,deflate,sdch",
"Accept-Language": "fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4",
"Accept-Charset": "ISO-8859-1,utf-8;q=0.7,*;q=0.3",
}
url = 'https://sslportal.tuv.com/dana-na/auth/url_3/welcome.cgi'
headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36'}
response = requests.post(url, data=values , headers=headers)
import rotator, time, random
from multiprocessing import Pool, Manager
friends = ['Vasya', 'Petya', 'Kolya', 'Sasha', 'Ivan', 'Alex', 'Semen', 'Goga Aka Gosha']
def drinking_with_friend(friends_list):
data = friends_list.pop(0)
interval = random.random() * 10
print('Start Drinking with {:>20} time for drinking (duration {} )'.format(data, interval))
time.sleep(interval)
friends_list.append(data)
print('Finish Drinking with {:>19} time for drinking (duration {} )'.format(data, interval))
if __name__ == "__main__":
manager = Manager()
friends_list = manager.list(friends)
with Pool(4) as pool:
for _ in range(10):
pool.apply_async(drinking_with_friend, [friends_list])
pool.close()
pool.join()
exit()
Start Drinking with Vasya time for drinking (duration 5.154979043445119 )
Start Drinking with Petya time for drinking (duration 0.0003130800248030141 )
Start Drinking with Kolya time for drinking (duration 1.833550237898618 )
Finish Drinking with Petya time for drinking (duration 0.0003130800248030141 )
Start Drinking with Sasha time for drinking (duration 6.215763259101572 )
Start Drinking with Ivan time for drinking (duration 9.88406377301575 )
Finish Drinking with Kolya time for drinking (duration 1.833550237898618 )
Start Drinking with Alex time for drinking (duration 3.848374725013499 )
Finish Drinking with Vasya time for drinking (duration 5.154979043445119 )
Start Drinking with Semen time for drinking (duration 9.993493984622905 )
Finish Drinking with Alex time for drinking (duration 3.848374725013499 )
Start Drinking with Goga Aka Gosha time for drinking (duration 1.5210977154160177 )
Finish Drinking with Sasha time for drinking (duration 6.215763259101572 )
Start Drinking with Petya time for drinking (duration 0.33348320324053105 )
Finish Drinking with Petya time for drinking (duration 0.33348320324053105 )
Start Drinking with Kolya time for drinking (duration 2.7868309945262726 )
Finish Drinking with Goga Aka Gosha time for drinking (duration 1.5210977154160177 )
Finish Drinking with Kolya time for drinking (duration 2.7868309945262726 )
Finish Drinking with Ivan time for drinking (duration 9.88406377301575 )
Finish Drinking with Semen time for drinking (duration 9.993493984622905 )
from multiprocessing import Pool, Manager
import random, time
my_list = [1,2,3,4,6,7,8,9,10,11]
def rotator(used):
index = random.randint(0,len(my_list)-1)
while my_list[index] in used: #данный лист один для всех, там актуальна инфа
index = random.randint(0,len(my_list)-1)
used.append(my_list[index])
return my_list[index]
def print_data(used):
data = rotator(used)
print(data)
if __name__ == "__main__":
manager = Manager()
used = manager.list() # создаем лист used, который будет доступен всем процессам
with Pool(4) as pool:
for _ in range(10):
pool.apply_async(print_data, [used]) # передаем лист used в ф-цию для каждого процесса
pool.close()
pool.join()
Вот здесь когда вы кликаете в любом месте страницы вы уверены что будет в наличии
#mc_embed_signup?
Соответственно покажется диалог, если перед этом он был скрыт