Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions script.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from binascii import a2b_base64
import processing

loginUrl = "https://minhaconta.globo.com/"
loginUrl = "https://login.globo.com/login/1"
login = "bbbotvot@gmail.com"
password = "botvot123"

Expand All @@ -18,7 +18,10 @@
firefox.find_element_by_id('password').send_keys(password)
firefox.find_elements_by_css_selector('#login-form .button')[0].click()

time.sleep(3)
while True:
if firefox.current_url != loginUrl:
break

firefox.get(url)

print("iniciando o bot")
Expand Down