mirror of
https://github.com/alecmuffett/real-world-onion-sites.git
synced 2025-12-03 03:45:54 -05:00
auto-update on Thu Jul 22 10:31:30 UTC 2021
This commit is contained in:
parent
12e0eb06c3
commit
89e45d8883
2 changed files with 161 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ url = 'https://crt.sh/?dNSName=%25.onion&exclude=expired&match=ILIKE'
|
|||
session = requests.Session()
|
||||
response = session.get(url)
|
||||
results = []
|
||||
onion_re = re.compile(r'[2-7a-z]{56}\.onion(\s|$)')
|
||||
onion_re = re.compile(r'[2-7a-z]{16}([2-7a-z]{40})?\.onion(\s|$)')
|
||||
|
||||
status = response.status_code
|
||||
if status != 200: raise RuntimeError('http status: {}'.format(status))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue