Skip to content

Commit

Permalink
Update getVerifCode.py
Browse files Browse the repository at this point in the history
updated
  • Loading branch information
eaabak authored Mar 2, 2021
1 parent 051557e commit 48b612a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions getVerifCode.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@ def getInstVeriCode(mailName, domain, browser):

# button = browser.find_element_by_xpath("/html/body/div[2]/div[1]/div[2]/table/tbody/tr[3]/td[1]/a/button").click()
# time.sleep(3)
t = browser.title
print(t)
t = browser.title

while True:
if t[:4]=="Fake":
print('in loop')
browser.refresh()
t = browser.title
print(t)
Expand All @@ -26,7 +24,6 @@ def getInstVeriCode(mailName, domain, browser):
# code = browser.find_element_by_xpath("//*[@id='email-table']/div[2]/div[1]/div/h1").text
# code = code.replace("is your Instagram code", "")
code = t[:6]
print(code)
browser.switch_to.window(browser.window_handles[0])
return code

Expand Down

0 comments on commit 48b612a

Please sign in to comment.