Python Forum
How would I find the url name from a ip address
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How would I find the url name from a ip address
#3
Hi Axel,
I am working on the dark website.
here is my script

import requests
from bs4 import BeautifulSoup


session = requests.session()
r = session.get('http://darkzzx4avcsuofgfez5zq75cqc4mprjvfqywo45dfcaxrwqg6qrlfid.onion/')
session = requests.session()
session.proxies ={}
session.proxies['http'] = 'socks5h://127.0.0.1:9150'
session.proxies['https'] = 'socks5h://127.0.0.1:9150'

print(r.headers)



import socket

r= input("Enter Website name  ")
try:
    print("Ip address of " + r + (" is ") + socket.gethostbyname(r))
except socket.error as e:
    print("Error : {} ".format(e))
here is what happen. it can not find the site address:

Python 3.8.10 (tags/v3.8.10:3d8993a, May  3 2021, 11:48:03) [MSC v.1928 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>> 
= RESTART: C:\Users\Renny\Desktop\dark_web_scraping and hacking\Python_Scripts\python scripts\scrap_dark_2.py
{'Date': 'Fri, 08 Oct 2021 16:30:27 GMT', 'Content-Length': '0', 'Connection': 'close'}
Enter Website name  http://darkzzx4avcsuofgfez5zq75cqc4mprjvfqywo45dfcaxrwqg6qrlfid.onion/
Error : [Errno 11001] getaddrinfo failed 
>>> 
What do I need to do to get the ip address of the dark website? Cry
Reply


Messages In This Thread
RE: How would I find the url name from a ip address - by Blue Dog - Oct-08-2021, 04:29 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020