This file contains hidden or 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
| import sys | |
| import tldextract | |
| def is_valid_domain(domain): | |
| # Check if the domain contains only alphanumeric characters and hyphens | |
| if not domain.replace('-', '').replace('.', '').isalnum(): | |
| return False | |
| # Check if the domain doesn't end with a period | |
| if domain.endswith('.'): |
This file contains hidden or 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
| # change IP via tor with python | |
| import requests | |
| from stem import Signal | |
| from stem.control import Controller | |
| import socks, socket | |
| import time | |
| # tuts | |
| # https://www.torproject.org/docs/faq.html.en#torrc | |
| # https://stem.torproject.org/tutorials/the_little_relay_that_could.html |