Skip to content

Commit

Permalink
Update deep_info1.py
Browse files Browse the repository at this point in the history
Removed Depreciated argument
  • Loading branch information
LukeTeaKirk authored Apr 29, 2021
1 parent 1cb4c7c commit f85c8bd
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions risks_and_deep_search/deep_info1.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,26 @@
from clint.textui import colored
import optparse
from clint.textui import colored
import undetected_chromedriver as uc

def deep_one(phone_number):
options = webdriver.ChromeOptions()
options.add_argument('--headless')
options.add_argument('--no-sandbox')
options.add_argument('disable-infobars')
options.add_experimental_option('prefs', {'intl.accept_languages': 'en,en_US'})
options.add_argument("user-agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36")
loc=os.getcwd()
serv=Service("%s/path/chromedriver"%loc)
driver = webdriver.Chrome(options=options,service=serv)
options.add_argument(
"user-agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36")
loc = os.getcwd()
driver = uc.Chrome(options=options)
driver.get("https://www.duckduckgo.com/")
WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.XPATH, "/html/body/div/div[2]/div/div[1]/div[2]/form/input[1]"))).send_keys(phone_number)
WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.XPATH, '/html/body/div/div[2]/div/div[1]/div[2]/form/input[2]'))).click()
try:
for x in range(0,30):
xpath='//*[@id="r1-%s"]/div/div[1]/div/a'%x
name=WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.XPATH, xpath))).text
print(colored.green("[+]This Link Could Be Relevant With Your Number:"),end="")
print(colored.green("[+]This Link Could Be Relevant With Your Number:"), end="")
print(colored.blue(name))
except:
pass

0 comments on commit f85c8bd

Please sign in to comment.