megadose / OnionSearch

OnionSearch is a script that scrapes urls on different .onion search engines.
GNU General Public License v3.0
1.16k stars 153 forks source link

onionsearch don't work | SOCKSHTTPConnectionPool(host='msydqstlz2kzerdg.onion', port=80): Max retries exceeded #37

Closed AnOrdinaryUsser closed 1 month ago

AnOrdinaryUsser commented 4 months ago

A week ago I used onionsearch and it worked and I was able to scrape different websites. The problem is that I wanted to use it this week and it doesn't work. What can happen. I get the following errors, attached screenshot:

onionsearch computer
search.py started with 1 processing units...
               Ahmia (#0):   0%|                                                                                                                | 0/1 [00:00<?, ?it/s]
Exception occured: SOCKSHTTPConnectionPool(host='msydqstlz2kzerdg.onion', port=80): Max retries exceeded with url: /search/?q=computer (Caused by NewConnectionError('<urllib3.contrib.socks.SOCKSConnection object at 0x7f2e76d533d0>: Failed to establish a new connection: [Errno 111] Connection refused'))
Exception occured: SOCKSHTTPConnectionPool(host='darksearch.io', port=80): Max retries exceeded with url: /api/search?query=computer&page=1 (Caused by NewConnectionError('<urllib3.contrib.socks.SOCKSConnection object at 0x7f2e76d928d0>: Failed to establish a new connection: [Errno 111] Connection refused'))
Exception occured: SOCKSHTTPConnectionPool(host='3bbad7fauom4d6sgppalyqddsqbf5u5p56b5k5uk2zxsy3d6ey2jobad.onion', port=80): Max retries exceeded with url: /search?q=computer&page=1 (Caused by NewConnectionError('<urllib3.contrib.socks.SOCKSConnection object at 0x7f2e76d90650>: Failed to establish a new connection: [Errno 111] Connection refused'))
Exception occured: SOCKSHTTPConnectionPool(host='hss3uro2hsxfogfq.onion', port=80): Max retries exceeded with url: /index.php?q=computer (Caused by NewConnectionError('<urllib3.contrib.socks.SOCKSConnection object at 0x7f2e76d99110>: Failed to establish a new connection: [Errno 111] Connection refused'))
Exception occured: SOCKSHTTPConnectionPool(host='l4rsciqnpzdndt2llgjx3luvnxip7vbyj6k6nmdy4xs77tx6gkd24ead.onion', port=80): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.contrib.socks.SOCKSConnection object at 0x7f2e76d9b1d0>: Failed to establish a new connection: [Errno 111] Connection refused'))
Exception occured: SOCKSHTTPConnectionPool(host='phobosxilamwcg75xt22id7aywkzol6q6rfl2flipcqoc4e4ahima5id.onion', port=80): Max retries exceeded with url: /search?query=computer&p=1 (Caused by NewConnectionError('<urllib3.contrib.socks.SOCKSConnection object at 0x7f2e76da51d0>: Failed to establish a new connection: [Errno 111] Connection refused'))
Exception occured: SOCKSHTTPConnectionPool(host='3fzh7yuupdfyjhwt3ugzqqof6ulbcl27ecev33knxe3u7goi3vfn2qqd.onion', port=80): Max retries exceeded with url: /oss/ (Caused by NewConnectionError('<urllib3.contrib.socks.SOCKSConnection object at 0x7f2e76da70d0>: Failed to establish a new connection: [Errno 111] Connection refused'))
              Torgle (#0):   0%|                                                                                                                | 0/1 [00:00<?, ?it/s]
Exception occured: SOCKSHTTPConnectionPool(host='no6m4wzdexe3auiupv2zwif7rm6qwxcyhslkcnzisxgeiw6pvjsgafad.onion', port=80): Max retries exceeded with url: /search.php?term=computer (Caused by NewConnectionError('<urllib3.contrib.socks.SOCKSConnection object at 0x7f2e76d9a810>: Failed to establish a new connection: [Errno 111] Connection refused'))
Exception occured: SOCKSHTTPConnectionPool(host='torgle5fj664v7pf.onion', port=80): Max retries exceeded with url: /torgle/index-frame.php?query=computer&search=1&engine-ver=2&isframe=0 (Caused by NewConnectionError('<urllib3.contrib.socks.SOCKSConnection object at 0x7f2e76d98f10>: Failed to establish a new connection: [Errno 111] Connection refused'))
Exception occured: SOCKSHTTPConnectionPool(host='onionf4j3fwqpeo5.onion', port=80): Max retries exceeded with url: /search.php?search=computer&submit=Search&page=1 (Caused by NewConnectionError('<urllib3.contrib.socks.SOCKSConnection object at 0x7f2e76d80d50>: Failed to establish a new connection: [Errno 111] Connection refused'))
Exception occured: SOCKSHTTPConnectionPool(host='tordex7iie7z2wcg.onion', port=80): Max retries exceeded with url: /search?query=computer&page=1 (Caused by NewConnectionError('<urllib3.contrib.socks.SOCKSConnection object at 0x7f2e76da7790>: Failed to establish a new connection: [Errno 111] Connection refused'))
Exception occured: SOCKSHTTPConnectionPool(host='tor66sewebgixwhcqfnp5inzp5x5uohhdy3kvtnyfxc2e5mxiuh34iid.onion', port=80): Max retries exceeded with url: /search?q=computer&sorttype=rel&page=1 (Caused by NewConnectionError('<urllib3.contrib.socks.SOCKSConnection object at 0x7f2e76dbd690>: Failed to establish a new connection: [Errno 111] Connection refused'))
              Tormax (#0):   0%|                                                                                                                | 0/1 [00:00<?, ?it/s]
Exception occured: SOCKSHTTPConnectionPool(host='tormaxunodsbvtgo.onion', port=80): Max retries exceeded with url: /search?q=computer (Caused by NewConnectionError('<urllib3.contrib.socks.SOCKSConnection object at 0x7f2e76d80a50>: Failed to establish a new connection: [Errno 111] Connection refused'))
Exception occured: SOCKSHTTPConnectionPool(host='haystak5njsmn2hqkewecpaxetahtwhsbsa64jom2k22z5afxhnpxfid.onion', port=80): Max retries exceeded with url: /?q=computer&offset=0 (Caused by NewConnectionError('<urllib3.contrib.socks.SOCKSConnection object at 0x7f2e76da79d0>: Failed to establish a new connection: [Errno 111] Connection refused'))
Exception occured: SOCKSHTTPConnectionPool(host='multivacigqzqqon.onion', port=80): Max retries exceeded with url: /?q=computer&page=1 (Caused by NewConnectionError('<urllib3.contrib.socks.SOCKSConnection object at 0x7f2e76da6cd0>: Failed to establish a new connection: [Errno 111] Connection refused'))
Exception occured: SOCKSHTTPConnectionPool(host='evo7no6twwwrm63c.onion', port=80): Max retries exceeded with url: /evo/search.php?query=computer&start=1&search=1&type=and&mark=bold+text&results=50 (Caused by NewConnectionError('<urllib3.contrib.socks.SOCKSConnection object at 0x7f2e76d9b150>: Failed to establish a new connection: [Errno 111] Connection refused'))
Exception occured: SOCKSHTTPConnectionPool(host='deeplinkdeatbml7.onion', port=80): Max retries exceeded with url: /index.php (Caused by NewConnectionError('<urllib3.contrib.socks.SOCKSConnection object at 0x7f2e76dbdf10>: Failed to establish a new connection: [Errno 111] Connection refused'))

Report:
  Execution time: 0:00:00.164095 seconds
  Results per engine:
    ahmia: 0
    darksearchio: 0
    onionland: 0
    notevil: 0
    darksearchenginer: 0
    phobos: 0
    onionsearchserver: 0
    torgle: 0
    torgle1: 0
    onionsearchengine: 0
    tordex: 0
    tor66: 0
    tormax: 0
    haystack: 0
    multivac: 0
    evosearch: 0
    deeplink: 0
  Total: 0 links written to output_computer_20240215121451.txt

image

Can anyone help me, or tell me what might be going on?

macgreine commented 3 months ago

I think I replicated your error...mine occurred when I stopped tor service. When I run mine I first enter service tor start I then check the status to make sure tor is running if it is active I then do my onionsearch scrape.

macgreine commented 1 month ago

oh by the way ahmia has new onion address : juhanurmihxlp77nkq76byazcldy2hlmovfu2epvl5ankdibsot4csyd.onion you may need to update onionsearch's core.py file with new onion addresses for the remaining search engines you can find. nano core.py I have found about 4 search engines that respond many others have simply closed or reopened under a different name and different search fields.

AnOrdinaryUsser commented 1 month ago

I think I replicated your error...mine occurred when I stopped tor service. When I run mine I first enter service tor start I then check the status to make sure tor is running if it is active I then do my onionsearch scrape.

Yeah, right. After a lot of testing, and using it several times, I think the main error is that the service can be stopped.

SOLUTION:

sudo systemctl status <servicio_de_onion> (i think onion.service)
sudo systemctl restart <servicio_de_onion>