-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
61 changed files
with
1,516 additions
and
1,158 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import asyncio | ||
from playwright.async_api import async_playwright | ||
from pyvirtualdisplay import Display | ||
import time | ||
async def GoogleMail(email,password): | ||
try: | ||
await page.locator("#identifierId").fill(email) | ||
await page.click("#identifierNext > div > button > span") | ||
await page.locator("#password > div.aCsJod.oJeWuf > div > div.Xb9hP > input").fill(password) | ||
await page.locator("#passwordNext > div > button > span").click() | ||
try: | ||
await page.click("#submit_approve_access > div > button > div.VfPpkd-RLmnJb") | ||
except: | ||
await page.click("#submit_approve_access > div:nth-child(1) > button:nth-child(1) > div:nth-child(1)") | ||
except: | ||
pass | ||
async def getName(): | ||
global name | ||
try: | ||
name = await page.text_content("#app > main > div > div > div > div.rounded-xl.overflow-hidden.shadow > header > div:nth-child(1) > div.font-montserrat.text-lg.sm\:text-2xl.flex-none",timeout=10000) | ||
except: | ||
name = await page.text_content("#app > main > div > div > div > div.flex.items-center.gap-4.mb-4 > div > h3") | ||
if "Oops! Search limit exceeded." in name: | ||
name="exceeded" | ||
def printName(): | ||
return name | ||
async def run(playwright,phone_number,email,password): | ||
global page | ||
display = Display(visible=0, size=(1600, 1200)) | ||
display.start() | ||
firefox = playwright.firefox | ||
browser = await firefox.launch(headless=True) | ||
page = await browser.new_page() | ||
await page.goto("https://truecaller.com") | ||
await page.locator("#app > main > header > div > form > input").fill(phone_number) | ||
await page.locator("#app > main > header > div > form > button").click() | ||
await page.locator("#app > main > div > div > a:nth-child(2)").click() | ||
await GoogleMail(email,password) | ||
await getName() | ||
await browser.close() | ||
async def main(phone_number,email,password): | ||
async with async_playwright() as playwright: | ||
await run(playwright,phone_number,email,password) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import asyncio | ||
from playwright.async_api import async_playwright | ||
from pyvirtualdisplay import Display | ||
import time | ||
async def GoogleMail(email,password): | ||
await page2.fill("#identifierId",email) | ||
await page2.click("#identifierNext > div > button > span",timeout=3000) | ||
await page2.locator("#password > div.aCsJod.oJeWuf > div > div.Xb9hP > input").fill(password) | ||
await page2.locator("#passwordNext > div > button > span").click() | ||
await page2.locator("#submit_approve_access > div > button > div.VfPpkd-RLmnJb").click() | ||
async def getName(): | ||
global name | ||
try: | ||
name = await page.text_content("#__next > section.SearchDataSection_searchData___2rxeV > div.NumberDetailsCard_card___2vSQO.SearchDataSection_searchData__card___2yyUr.NumberDetailsCard_card__info___SGTrb > div > div > div.NumberDetailsCard_card__head___3dM4Q > div.NumberDetailsCard_card__name____58-0",timeout=3000) | ||
except: | ||
try: | ||
await page.text_content("#__next > section.SearchDataSection_searchData___2rxeV > div.NumberDetailsCard_card___2vSQO.SearchDataSection_searchData__card___2yyUr.NumberDetailsCard_card__overLimit___1aZPG > div > div > div.NumberDetailsCard_card__head___3dM4Q > div.NumberDetailsCard_card__name____58-0 > div",timeout=3000) | ||
name="exceeded" | ||
except: | ||
try: | ||
await page.text_content("#__next > section.SearchDataSection_searchData___2rxeV > div.NumberDetailsCard_card___2vSQO.SearchDataSection_searchData__card___2yyUr.NumberDetailsCard_card__noInfo___wOyaL > div > div > div.NumberDetailsCard_card__head___3dM4Q > div.NumberDetailsCard_card__name____58-0",timeout=3000) | ||
name="UnKnown" | ||
except: | ||
name="Update Required. Please contact with developer." | ||
def printName(): | ||
return name | ||
async def run(playwright,phone_number,email,password): | ||
global page,page2 | ||
display = Display(visible=0, size=(1600, 1200)) | ||
display.start() | ||
firefox = playwright.firefox | ||
browser = await firefox.launch(headless=True) | ||
context = await browser.new_context() | ||
page = await context.new_page() | ||
await page.goto("https://sync.me/") | ||
await page.locator('css=[placeholder="Search any phone number"]').fill(phone_number) | ||
await page.keyboard.press("Enter") | ||
time.sleep(1) | ||
async with context.expect_page() as new_page_info: | ||
await page.click("p.NumberDetailsCard_button___3FEkC:nth-child(1)") | ||
page2 = await new_page_info.value | ||
await page2.wait_for_load_state() | ||
time.sleep(2) | ||
await GoogleMail(email,password) | ||
await getName() | ||
await browser.close() | ||
async def main1(phone_number,email,password): | ||
async with async_playwright() as playwright: | ||
await run(playwright,phone_number,email,password) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import phonenumbers | ||
from phonenumbers.timezone import time_zones_for_number | ||
from phonenumbers import geocoder | ||
from phonenumbers import carrier | ||
import sys | ||
from datetime import datetime | ||
import pytz | ||
|
||
def location(phone_number): | ||
try: | ||
global number,liste,country,operator,errNumber,currentTime | ||
number=phonenumbers.parse(phone_number,"EN") | ||
liste=time_zones_for_number(number) | ||
country=geocoder.description_for_number(number, "en") | ||
operator=carrier.name_for_number(number,"en") | ||
if str(liste[0])=="Etc/Unknown": | ||
errNumber="False" | ||
currentTime=None | ||
else:errNumber="True";IST = pytz.timezone(str(liste[0]));datetime_ist = datetime.now(IST);currentTime=datetime_ist.strftime('%Y:%m:%d %H:%M:%S') | ||
except: | ||
errNumber="False" | ||
currentTime=None | ||
country=None | ||
operator=None | ||
liste=[None] | ||
|
||
def returnCountry(): | ||
return str(country) | ||
def returnTimeZone(): | ||
return str(liste[0]) | ||
def returnOperator(): | ||
return str(operator) | ||
def return_errNumber_(): | ||
return errNumber | ||
def returnCurrentTime(): | ||
return currentTime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import requests | ||
from bs4 import BeautifulSoup | ||
def printAll(): | ||
return comment | ||
def getComments_(phone_number): | ||
global comment,comment_ | ||
comment=[] | ||
headers = { | ||
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36' | ||
} | ||
try: | ||
phone_number=phone_number.split("+")[1] | ||
reqToServer=requests.get(f"https://www.unknownphone.com/phone/{phone_number}",headers=headers) | ||
source = BeautifulSoup(reqToServer.content,"lxml") | ||
for i in range(1,10): | ||
try: | ||
comment_=source.select(f'#content > div > main > section.comments > ul > li:nth-child({i}) > article > div')[0].text | ||
comment.append(comment_) | ||
except: | ||
pass | ||
if comment==[]: | ||
comment_="No comment for this number" | ||
comment.append(comment_) | ||
except: | ||
comment_="No comment for this number" | ||
comment.append(comment_) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import requests | ||
from bs4 import BeautifulSoup | ||
def printAll(): | ||
return comment | ||
def _getComments2_(phone_number): | ||
global comment | ||
comment=[] | ||
headers = { | ||
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:84.0) Gecko/20100101 Firefox/84.0", | ||
} | ||
phone_number=phone_number.split("+")[1] | ||
reqToServer = requests.get(f"https://spamcalls.net/en/number/{phone_number}", headers=headers) | ||
source = BeautifulSoup(reqToServer.content,"lxml") | ||
comment_=source.select(f'p[lang="en"]') | ||
for i in comment_: | ||
comment.append(i.text) | ||
if comment==[]: | ||
comment.append("No comment for this number") | ||
print(comment_) |
Oops, something went wrong.