How can I speak with...
Free
Check with seller
Moving - Storage
import requests
from selenium import webdriver
from selenium.webdriver.chrome.service import Service as ChromeService
from webdriver_manager.chrome import ChromeDriverManager
# List of state codes to test
state_codes = ["ny", "ct", "ca", "tx", "fl", "pa", "oh", "il", "ga", "nc", "mi", "nj", "va", "wa", "az", "ma", "tn", "in", "mo", "md", "wi", "co", "mn", "sc", "al", "la", "ky", "or", "ok", "ct", "ia", "ms", "ar", "ks", "ut", "nv", "nm", "ne", "wv", "id", "hi", "nh", "me", "mt", "ri", "de", "sd", "nd", "ak", "vt", "wy"]
# Generate dorks
dorks = [f"{code}.gov" for code in state_codes]
# Set up Selenium WebDriver
driver = webdriver.Chrome(service=ChromeService(ChromeDriverManager().install()))
# Function to check if a URL is working
def check_url(url):
try:
response = requests.get(f"https://{url}")
if response.status_code == 200:
return True
else:
return False
except requests.RequestException:
return False
# Visit each URL and check if it's working
working_dorks = []
for dork in dorks:
if check_url(dork):
working_dorks.append(dork)
driver.get(f"https://{dork}")
print(f"Working URL: https://{dork}")
# Save working dorks to a text file
with open("working_dorks.txt", "w") as file:
for dork in working_dorks:
file.write(f"https://{dork}\n")
print("Check completed. Working URLs have been saved to working_dorks.txt")
# Close the browser
driver.quit()
Published date:
July 22, 2024
Region:
Alaska
Views
5
Useful information
User
Tel.: 0689364588
Contact publisher
You must log in or register a new account in order to contact the publisher
How can I speak with...
Free
vdhiuhvdsiuhvdsiuhvd...
222.00 Dollar US$
dsgsdgsdgds
100.00 Dollar US$
khggfes
Free