Open andre-santos1 opened 1 year ago
I have same problems, the problem is domain fyp.ebay.com doesn't exist for several reasons, try to ping fyp.ebay.com
on terminal and it say unknown host. What I do is comment the scrape_ebay(email) in function start_scrapping.
When I run python3
email2phonenumber.py scrape -e target@email.com
the script yields the following error:Starting scraping online services...
Scraping Ebay...
Traceback (most recent call last):
File "/home/osint/Programas/email2phonenumberEnvironment/email2phonenumberEnvironment/lib/python3.9/site-packages/urllib3/connection.py", line 174, in _new_conn
File "/home/osint/Programas/email2phonenumberEnvironment/email2phonenumberEnvironment/lib/python3.9/site-packages/urllib3/util/connection.py", line 72, in create_connection
File "/home/osint/.pyenv/versions/3.9.0/lib/python3.9/socket.py", line 953, in getaddrinfo
socket.gaierror: [Errno -2] Name or service not known
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/osint/Programas/email2phonenumberEnvironment/email2phonenumberEnvironment/lib/python3.9/site-packages/urllib3/connectionpool.py", line 703, in urlopen
File "/home/osint/Programas/email2phonenumberEnvironment/email2phonenumberEnvironment/lib/python3.9/site-packages/urllib3/connectionpool.py", line 386, in _make_request
File "/home/osint/Programas/email2phonenumberEnvironment/email2phonenumberEnvironment/lib/python3.9/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
File "/home/osint/Programas/email2phonenumberEnvironment/email2phonenumberEnvironment/lib/python3.9/site-packages/urllib3/connection.py", line 358, in connect
File "/home/osint/Programas/email2phonenumberEnvironment/email2phonenumberEnvironment/lib/python3.9/site-packages/urllib3/connection.py", line 186, in _new_conn
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3fcc60ac0>: Failed to establish a new connection: [Errno -2] Name or service not known
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/osint/Programas/email2phonenumberEnvironment/email2phonenumberEnvironment/lib/python3.9/site-packages/requests/adapters.py", line 489, in send
File "/home/osint/Programas/email2phonenumberEnvironment/email2phonenumberEnvironment/lib/python3.9/site-packages/urllib3/connectionpool.py", line 787, in urlopen
File "/home/osint/Programas/email2phonenumberEnvironment/email2phonenumberEnvironment/lib/python3.9/site-packages/urllib3/util/retry.py", line 592, in increment
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='fyp.ebay.com', port=443): Max retries exceeded with url: /EnterUserInfo?ru=https%3A%2F%2Fwww.ebay.com%2F&gchru=&clientapptype=19&rmvhdr=false (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3fcc60ac0>: Failed to establish a new connection: [Errno -2] Name or service not known'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/osint/Programas/email2phonenumberEnvironment/email2phonenumber/email2phonenumber.py", line 1019, in
File "/home/osint/Programas/email2phonenumberEnvironment/email2phonenumber/email2phonenumber.py", line 538, in start_scrapping
File "/home/osint/Programas/email2phonenumberEnvironment/email2phonenumber/email2phonenumber.py", line 625, in scrape_ebay
File "/home/osint/Programas/email2phonenumberEnvironment/email2phonenumberEnvironment/lib/python3.9/site-packages/requests/sessions.py", line 600, in get
File "/home/osint/Programas/email2phonenumberEnvironment/email2phonenumberEnvironment/lib/python3.9/site-packages/requests/sessions.py", line 587, in request
File "/home/osint/Programas/email2phonenumberEnvironment/email2phonenumberEnvironment/lib/python3.9/site-packages/requests/sessions.py", line 701, in send
File "/home/osint/Programas/email2phonenumberEnvironment/email2phonenumberEnvironment/lib/python3.9/site-packages/requests/adapters.py", line 565, in send
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='fyp.ebay.com', port=443): Max retries exceeded with url: /EnterUserInfo?ru=https%3A%2F%2Fwww.ebay.com%2F&gchru=&clientapptype=19&rmvhdr=false (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3fcc60ac0>: Failed to establish a new connection: [Errno -2] Name or service not known'))