-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSeleniumTwitter.py
More file actions
36 lines (20 loc) · 785 Bytes
/
Copy pathSeleniumTwitter.py
File metadata and controls
36 lines (20 loc) · 785 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
from selenium import webdriver
from selenium.webdriver.common.by import By
import time
browser = webdriver.Safari()
browser.get("https://www.trendyol.com/giris?cb=%2F")
time.sleep(3)
username = browser.find_element(By.XPATH, '//*[@id="login-email"]')
email = input("Email giriniz: ")
password = input("Password giriniz: ")
username.send_keys(email)
devamet = browser.find_element(By.XPATH, '//*[@id="email-check-panel"]/form/button')
devamet.click()
newurl = "https://www.trendyol.com/giris/v2?cb=/&email=" + email
browser.get(newurl)
time.sleep(3)
password = browser.find_element(By.XPATH, '//*[@id="login-password"]')
password.send_keys(password)
girişyapson = browser.find_element(By.XPATH, '//*[@id="login-panel"]/form/button')
girişyapson.click()
browser.close()