-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathname_ss.py
177 lines (164 loc) · 8.6 KB
/
name_ss.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.common.exceptions import WebDriverException
import time
# Set up headless Chrome options
chrome_options = Options()
chrome_options.add_argument("--headless") # Ensure GUI is off
chrome_options.add_argument("--no-sandbox")
chrome_options.add_argument("--disable-dev-shm-usage")
# Add headers for stealth
chrome_options.add_argument("--disable-blink-features=AutomationControlled")
chrome_options.add_argument("--disable-extensions")
chrome_options.add_argument("--disable-gpu")
chrome_options.add_argument("--disable-infobars")
chrome_options.add_argument("--disable-notifications")
chrome_options.add_argument("--disable-popup-blocking")
chrome_options.add_argument("--disable-save-password-bubble")
chrome_options.add_argument("--disable-translate")
chrome_options.add_argument("--disable-web-security")
chrome_options.add_argument("--ignore-certificate-errors")
chrome_options.add_argument("--no-default-browser-check")
chrome_options.add_argument("--no-first-run")
chrome_options.add_argument("--no-sandbox")
chrome_options.add_argument("--no-zygote")
chrome_options.add_argument("--single-process")
# Set path to chromedriver as per your configuration
webdriver_path = '/usr/bin/chromedriver'
# Set up driver
#driver = webdriver.Chrome(options=chrome_options, executable_path=webdriver_path)
driver = webdriver.Chrome(options=chrome_options)
def do_search_and_screenshot(site_key, first_name, last_name):
url_templates = {
# ... [Your existing URL templates] ...
'411info': 'https://411.info/people/?fn&{first_name}-{last_name}',
'411': 'https://www.411.com/person-search/{first_name}-{last_name}',
'AllPeople': 'https://allpeople.com/search?ss={first_name}+{last_name}&ss-e=&ss-p=&ss-i=&where=&industry-auto=&where-auto=',
'Addresses': 'https://www.addresses.com/people/{first_name}+{last_name}',
'Addresssearch': 'https://www.addresssearch.com/people-search-full-name.php?fn={first_name}&ln={last_name}',
'AdvancedBackgroundChecks': 'https://www.advancedbackgroundchecks.com/names/{first_name}-{last_name}',
'AdvancedPeopleSearch': 'https://www.advanced-people-search.com/people/{first_name}-{last_name}',
'Anywho': 'https://www.anywho.com/people/{first_name}+{last_name}',
'Archives': 'https://www.archives.com/search/ancestor/results?FirstName={first_name}&LastName={last_name}&Country=United%20States&RecordSearchType=Unknown',
'Arrestfacts': 'https://arrestfacts.com/ng/search?fname={first_name}&lname={last_name}&state=&city=&age=&type=&site=',
'BackgroundAlerts': 'https://www.backgroundalert.com/path/background/ln/1/results?searchbox=simple&SID=POLoxpD_5sLP7XYEyDA8aSqrOkZT8F9_&fn={first_name}&ln={last_name}',
'BackgroundCheckRun': 'https://backgroundcheck.run/ng/profile/search?fname={first_name}&lname={last_name}',
'Blockshoppers': 'https://blockshoppers.com/search/?q={first_name}+{last_name}',
'Calltruth': 'https://www.calltruth.com/people/{first_name}-{last_name}',
'Centeda': 'https://centeda.com/profile/search?fname={first_name}&lname={last_name}&state=&city=&fage=',
'CheckPeople': 'https://checkpeople.com/landing/people/k1u2r3t4/searching?firstName={first_name}&lastName={last_name}&state=&city=&aid=11&sid=&tid=&hitid=&iv=&obcid=',
'ClustrMaps': 'https://clustrmaps.com/persons/{first_name}-{last_name}',
'Classmates': 'https://www.classmates.com/siteui/search/results?q={first_name}%20{last_name}&searchType=all',
'Councilon': 'https://councilon.com/profile/search?fname={first_name}&lname={last_name}&state=&city=&fage=',
'Cubib': 'https://cubib.com/search_results.php?fname={first_name}&lname=&{last_name}&locations:all',
'CyberBackgroundChecks': 'https://www.cyberbackgroundchecks.com/people/{first_name}-{last_name}',
'Dataveria': 'https://dataveria.com/profile/search?fname={first_name}&lname={last_name}&state=&city=&fage=',
'FamilyTreeNow': 'https://www.familytreenow.com/search/genealogy/results?first&{first_name}&last=&{last_name}',
'FastPeople': 'https://www.fastpeoplesearch.com/name/{first_name}-{last_name}',
'FindPeopleSearch': 'https://www.findpeoplesearch.com/{first_name}+{last_name}/1/16983092709439',
'Freepeopledirectory': 'https://www.freepeopledirectory.com/name/{first_name}-{last_name}',
'Gladiknow': 'https://gladiknow.com/index-people-search?fn={first_name}&ln={last_name}&city=&state=&age=&dob=&relatives=&aliases=&phones=&email=&search=',
'IDcrawl': 'https://idcrawl.com/{first_name}-{last_name}',
'Intelius': 'https://www.intelius.com/people-search/&{first_name}&-&{last_name}',
'LocatePeople': 'https://www.locatepeople.org/{first_name}-{last_name}/',
'NeighborReport': 'https://neighbor.report/{first_name}-{last_name}',
'Nuwber': 'https://nuwber.com/search?name={first_name}%20{last_name}',
'OfficialUSA': 'https://www.officialusa.com/names/{first_name}-{last_name}/',
'Peeplookup': 'https://www.peeplookup.com/people/search?name={first_name}+{last_name}',
'Peekyou': 'https://www.peekyou.com/{first_name}_{last_name}',
'PeopleSearchNow': 'https://www.peoplesearchnow.com/person/{first_name}-{last_name}',
'PeoplebyName': 'https://www.peoplebyname.com/people/{last_name}/{first_name}',
'PrivateEye': 'https://www.privateeye.com/people/{first_name}+{last_name}',
'Publicrecordsnow': 'https://www.publicrecordsnow.com/name/{first_name}+{last_name}/',
'Pub360': 'https://pub360.com/profile/same/{first_name}-{last_name}',
'Yasni': 'https://www.yasni.com/{first_name}+{last_name}/check+people',
'ZabaSearch': 'https://www.zabasearch.com/people/{first_name}+{last_name}/',
# Add all other site templates heret_name}&/&{last_name}',
'RocketReach': 'http://google.com/search?q=site:rocketreach.co+"{first_name}&{last_name}&"',
'SearchPeopleFree': 'https://www.searchpeoplefree.com/find/{first_name}&-&{last_name}',
'Social-Searcher': 'https://www.social-searcher.com/search-users/?q6={first_name}&+&{last_name}',
'Spokeo': 'https://www.spokeo.com/{first_name}&-&{last_name}&?loaded=1',
'Spytox': 'https://www.spytox.com/people/search?name= {first_name}&+ &{last_name}',
'TelephoneDictories': 'https://www.telephonedirectories.us/{first_name}-{last_name}',
'ThatsThem': 'https://thatsthem.com/name/{first_name}-{last_name}',
'TruePeople': 'https://www.truepeoplesearch.com/results?name={first_name}%20{last_name}',
'TruthFinder': 'https://www.truthfinder.com/results/?firstName={first_name}&&lastName={last_name}&state=ALL',
'Webmii': 'https://webmii.com/people?n=%22{first_name}%20{last_name}%22',
'WhitePages': 'https://www.whitepages.com/name/{first_name}-{last_name}',
'Yasni': 'https://www.yasni.com/{first_name}+{last_name}/check+people',
'ZabaSearch': 'https://www.zabasearch.com/people/{first_name}+{last_name}/',
# Add all other site templates here
}
if site_key in url_templates:
url = url_templates[site_key].format(first_name=first_name, last_name=last_name)
try:
driver.get(url)
time.sleep(2) # Adjust time as needed for the page to load
driver.save_screenshot(f"{site_key}_{first_name}_{last_name}.png")
except WebDriverException as e:
print(f"An error occurred while accessing {url}: {e}")
else:
print(f"No URL template found for site key: {site_key}")
def do_all_with_screenshots(first_name, last_name):
site_keys = [
# ... [Your existing site keys] ...
'411info',
'411',
'Addresses',
'Addresssearch',
'AllPeople',
'AdvancedBackgroundChecks',
'AdvancedPeopleSearch',
'Anywho',
'Arrestfacts',
'Archives',
'BackgroundAlerts',
'BackgroundCheckRun',
'Centeda',
'CheckPeople',
'ClustrMaps',
'Classmates',
'Councilon',
'Cubib',
'CyberBackgroundChecks',
'Dataveria',
'411info',
'411',
'Addresses',
'Addresssearch',
'AllPeople',
'AdvancedBackgroundChecks',
'AdvancedPeopleSearch',
'Anywho',
'Arrestfacts',
'LocatePeople',
'NeighborReport',
'Nuwber',
'OfficialUSA',
'Peeplookup',
'Peekyou',
'PeopleSearchNow',
'PeoplebyName',
'PrivateEye',
'Publicrecordsnow',
'Pub360',
'RocketReach',
'SearchPeopleFree',
'Social-Searcher',
'Spokeo',
'Spytox',
'TelephoneDictories',
'ThatsThem',
'TruePeople',
'TruthFinder',
'Webmii',
'WhitePages',
'Yasni',
'ZabaSearch',
]
for site_key in site_keys:
do_search_and_screenshot(site_key, first_name, last_name)
# Example usage:
do_all_with_screenshots("John", "Doe")
# Clean up (close the browser)
driver.quit()