Last active
October 1, 2020 19:57
-
-
Save KebabLord/e0cd0789c14239986755d134a1b253f2 to your computer and use it in GitHub Desktop.
Popüler türk sitelerinde kullanıcı sorgusu scipti.
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
#!/usr/bin/env python3 | |
# Önizleme: https://u.teknik.io/nCIrg.png | |
import requests | |
siteler = { | |
"KizlarSoruyor":"https://www.kizlarsoruyor.com/uye/", | |
"Onedio.com":"https://onedio.com/profil/", | |
"EkşiSözlük":"https://eksisozluk.com/biri/", | |
"Puiv.com":"https://www.puiv.com/k/" | |
} | |
google_sorgu = [ | |
"letgo.com", | |
"sahibinden.com", | |
"facebook.com", | |
"youtube.com" | |
] | |
useragent="Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0" | |
headers={"User-Agent":useragent} | |
# Site kullanıcı sorguları | |
def kullaniciSorgu(site,nick): | |
print("...",end="\r") | |
url = site[1]+nick.replace(" ","-") | |
req = requests.get(url,headers=headers) | |
print(site[0]+":\t",end="") | |
if req.status_code < 400: | |
print(url) | |
else: | |
print("Bulunamadı") | |
# Google arama sonuçları | |
def googleAramaUrl(site,isim): | |
print("...",end="\r") | |
with requests.session() as c: | |
url = 'https://www.google.com/search' | |
keyword = 'site:'+site+' "'+name+'"' | |
query = {'q': keyword} | |
urllink = requests.get(url, params=query) | |
print(site+":\t"+urllink.url) | |
if __name__ == "__main__": | |
uname = input("nick: ") | |
name = input("gerçek isim: ").title() | |
print("\n# Kullanıcı adı Sorguları") | |
for site in siteler.items(): | |
kullaniciSorgu(site,uname) | |
print("\n# Google Arama Sonuçları") | |
for site in google_sorgu: | |
googleAramaUrl(site,name) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Önizleme:
Mevcut siteler: