Skip to content
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.

Update onion engines to v3 #2904

Merged
merged 1 commit into from Aug 2, 2021
Merged

Update onion engines to v3 #2904

merged 1 commit into from Aug 2, 2021

Conversation

MarcAbonce
Copy link
Contributor

What does this PR do?

Ahmia's new URL from https://ahmia.fi

I also removed not_evil which has been down for a while now: https://old.reddit.com/r/onions/search/?q=not+evil&restrict_sr=on&t=year

I also needed to downgrade httpx to make this work. PR encode/httpx#1522 made some breaking changes in AsyncHTTPTransport that affect our code in https://github.com/searx/searx/blob/master/searx/network/client.py

Why is this change important?

Tor is currently deprecating v2 onion addresses https://blog.torproject.org/v2-deprecation-timeline

How to test this PR locally?

  1. Run Tor with default settings.
  2. Add or uncomment these lines in your settings.yml:
proxies:
    all://:
        - socks5h://127.0.0.1:9050
    using_tor_proxy: True
    extra_proxy_timeout: 5.0
  1. Run searx.
  2. Try some query in the onions category, such as !onions dogecoin.

Alternatively, you can try it in http://w5rl6wsd7mzj4bdkbuqvzidet5osdsm5jhg2f7nvfidakfq5exda5wid.onion

Expected behaviour:

  1. Some garbage results.

downgrade httpx:
PR encode/httpx#1522
made some breaking changes in AsyncHTTPTransport that affect
our code in https://github.com/searx/searx/blob/master/searx/network/client.py

remove not_evil which has been down for a while now:
https://old.reddit.com/r/onions/search/?q=not+evil&restrict_sr=on&t=year
Copy link
Member

@kvch kvch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@kvch kvch merged commit a5839a6 into searx:master Aug 2, 2021
@MarcAbonce MarcAbonce deleted the onions_v3_fix branch August 3, 2021 05:02
MarcAbonce added a commit to MarcAbonce/searx that referenced this pull request Sep 23, 2021
downgrade httpx:
PR encode/httpx#1522
made some breaking changes in AsyncHTTPTransport that affect
our code in https://github.com/searx/searx/blob/master/searx/network/client.py

remove not_evil which has been down for a while now:
https://old.reddit.com/r/onions/search/?q=not+evil&restrict_sr=on&t=year
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants