Commit 8a58bf13 authored by BooDonky's avatar BooDonky
Browse files

Web Project Buy Ticket Init

parent 5db491d1
name;values;domain
oo;v1;.facebook.com
xs;91%3AYElG58o-B-AUsg%3A2%3A1637155946%3A-1%3A12803;.facebook.com
c_user;100001000000000;.facebook.com
spin;r.1004745222_b.trunk_t.1637155952_s.1_v.2_;.facebook.com
wd;929x879;.facebook.com
sb;TwSVYW79AHhBOL-F5-BJMoNI;.facebook.com
datr;RASVYWNDN6_wPVJe64nsKPiq;.facebook.com
name value domain
SIDCC AJi4QfEHM8qUBsn9bDjHEWQ-KiMxLtRTStabuRG7ehd5I9G97JXMd-7oKEksjZ2HXgHEvFrvnX0 .google.com
__Secure-1PSID DQjbiLhs96THHTumujPa4HWDWEdj17TFPNCkDY2cfXo41Rx7ZN8MF5qJVJ0v-vZ2phXkiw. .google.com
SID DQjbiLhs96THHTumujPa4HWDWEdj17TFPNCkDY2cfXo41Rx7VQwGcDJB6ccj6TzaCYVBJg. .google.com
APISID 6kk6_zJohn2EASCw/ACYhXfNwGjjwj_XXz .google.com
__Secure-3PSIDCC AJi4QfEiPDgwz9F4FZDg0zlzZaOsWZnUlZc_9g2QVzT9pAWS4OmtU6uOxLKSUTRB7NgiEmtltTk .google.com
__Secure-3PAPISID YFGfKuqnDjZRlZcy/ArQKbhka87Jpz1aON .google.com
SAPISID YFGfKuqnDjZRlZcy/ArQKbhka87Jpz1aON .google.com
HSID AK15cgiV5uEaSKzAk .google.com
SSID AETdwfb3STiSj9gT4 .google.com
__Secure-3PSID DQjbiLhs96THHTumujPa4HWDWEdj17TFPNCkDY2cfXo41Rx7N_bG7pq7SW1w3A_Lk3mpqw. .google.com
__Secure-1PAPISID YFGfKuqnDjZRlZcy/ArQKbhka87Jpz1aON .google.com
NID 511=fHZ7pl8sUEjuHSezE1Gtny27AXwb1n-Wqm45dGMnoVoeoHM9AlPgYlfZGK4004yrWsIGmcrpugXsToUUdfPJxFqgFG-KVxukUizZRsQMI5X6QeJuzhPI0v-7z6qL9Jt9o1Bn76gRR95NeMlVGP347BAVcgOjKB7eG80EWwB41EJLfRXvWI76RuTW_fO-FStaFpnzJRqESDfLMbAwoapThsZo_JBrLFv-x46XZVbewFkXtuyx1Vi5YKlOpTFdNaNZWI25XAD3jLlNUaljl4XCz0s-_PkNzw6g94roDfEGmB1Zr1wG8gSYMsnCghXNwgI1SD-xMlZvj3EEIIvAM2i5S-Jch08AbOZmH-aq1kJq1IAmXN145HOMNUyo7QXIJiCAZqombpIjUkjuBuu2BEDZNK5hPKZ57Ue6iAD2wcy1pcFc8p7IOO65Dy7YRHGF_I0PTXR0cQh_RCjqDYP9Ycxwyl9ELiHvlY3yge0wcXPuKhxBDe9p .google.com
1P_JAR 2021-11-16-17 .google.com
OTZ 6224512_52_52_123900_48_436380 www.google.com
CONSENT YES+CH.de+V13+BX .google.com
SEARCH_SAMESITE CgQIrZMB .google.com
ANID AHWqTUmdHg-U9fWwdLaTEes68K8c3H8YmOIq-_Kkp5hmOSeFEUbvohZ4LjMzm-2J .google.com
OGPC 19026101-2:19022622-2: .google.com
_gid GA1.2.506733716.1637162554 .bataclan.fr
PHPSESSID c80fc550ad2bbace3e615739e191b0c0 www.bataclan.fr
SSESS16975927c8bf55966191d0a85b94c1dd AAlG0xIL8XDbjpToZICUl-HRju-6Sps3ycltkdJbSeM .billetterie.bataclan.fr
_icl_current_language en www.bataclan.fr
_gat_gtag_UA_7119279_23 1 .bataclan.fr
bdsp 1 billetterie.bataclan.fr
CookiePlusCookiesAccepted %7B%22groups%22%3A%22all%22%2C%22expiration_time%22%3A1668698585%2C%22date_created%22%3A%222021-11-17%2016%3A23%3A05%22%7D www.bataclan.fr
_ga GA1.2.409191840.1637162554 .bataclan.fr
has_js 1 billetterie.bataclan.fr
S billing-ui-v3=zog79AlvJtjr6H3g5So3EBDSgONSfYlT:billing-ui-v3-efe=zog79AlvJtjr6H3g5So3EBDSgONSfYlT .google.com
name;value;domain;
oo;v1;.facebook.com;
xs;91%3AYElG58o-B-AUsg%3A2%3A1637155946%3A-1%3A12803;.facebook.com;
c_user;1.00001E+14;.facebook.com;
spin;r.1004745222_b.trunk_t.1637155952_s.1_v.2_;.facebook.com;
wd;929x879;.facebook.com;
sb;TwSVYW79AHhBOL-F5-BJMoNI;.facebook.com;
datr;RASVYWNDN6_wPVJe64nsKPiq;.facebook.com;
name,value,domain
oo,v1,.facebook.com
xs,91%3AYElG58o-B-AUsg%3A2%3A1637155946%3A-1%3A12803,.facebook.com
c_user,100001000000000,.facebook.com
spin,r.1004745222_b.trunk_t.1637155952_s.1_v.2_,.facebook.com
wd,929x879,.facebook.com
sb,TwSVYW79AHhBOL-F5-BJMoNI,.facebook.com
datr,RASVYWNDN6_wPVJe64nsKPiq,.facebook.com
from selenium import webdriver
from csv import DictReader
#from tools.web_function_tools import get_cookies_values,cookie_adder
from tools.web_function_tools import get_cookies_values,cookie_adder
url = "https://www.facebook.com"
csv = "facebook_cookies.csv"
url = "https://www.bataclan.fr/"
csv = "files/bataclan_cookies.csv"
driver = webdriver.Chrome()
driver.get(url)
def get_cookies_values(file):
with open(file, encoding="utf-8-sig") as f:
dict_reader = DictReader(f)
list_of_dicts = list(dict_reader)
return list_of_dicts
cookies = get_cookies_values(csv)
print(cookies)
for i in cookies:
driver.add_cookie(i)
driver.refresh()
cookie_adder(driver, cookies)
......@@ -8,8 +8,8 @@ def get_cookies_values(file):
return list_of_dicts
def cookie_adder(d,cookies):
def cookie_adder(driver,cookies):
for i in cookies:
d.add_cookie(i)
d.refresh()
driver.add_cookie(i)
driver.refresh()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment