Check with seller

The Edge of Tomorrow

  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



Share by email Share on Facebook Share on Twitter Share on Google+ Share on LinkedIn Pin on Pinterest

Useful information

  • Avoid scams by acting locally or paying with PayPal
  • Never pay with Western Union, Moneygram or other anonymous payment services
  • Don't buy or sell outside of your country. Don't accept cashier cheques from outside your country
  • This site is never involved in any transaction, and does not handle payments, shipping, guarantee transactions, provide escrow services, or offer "buyer protection" or "seller certification"

 User

 Tel.: 0689364588

Contact publisher

You must log in or register a new account in order to contact the publisher

Login Register for a free account