Extravi / araa-search

A privacy-respecting, ad-free, self-hosted Google metasearch engine with strong security that offers full API support and utilizes Qwant for images, and DuckDuckGo for auto-complete.
https://araa.extravi.dev
GNU Affero General Public License v3.0
247 stars 24 forks source link

My instance is up! #69

Closed unstablemaple closed 11 months ago

unstablemaple commented 1 year ago

Instance: tailsx.seitan-ayoub.lol Location: DE

Extravi commented 1 year ago

image

nice!

Extravi commented 1 year ago

btw i will be renaming tailsx soon https://github.com/Extravi/aura-search/issues/67 let me know what you think.

Extravi commented 1 year ago

thanks

unstablemaple commented 1 year ago

@Extravi Will do! Also, is there some sort of logo for the frontend so I can add it to my homepage?

Extravi commented 1 year ago

i will update the code with once done

Extravi commented 1 year ago

it adds a few things like this

image

Extravi commented 1 year ago

image

Extravi commented 1 year ago

I also replaced the background, let me know if you like it. Thanks.

Extravi commented 1 year ago

would you like me to add your instance to the instances list?

unstablemaple commented 1 year ago

would you like me to add your instance to the instances list?

Yes, thank you! I will change the subdomain to the new name after you decide on one. I personally use Darkreader so I usually don't see the wallpaper, but the blur gives it an elegant look.

Extravi commented 1 year ago

thanks

Extravi commented 1 year ago

i think i will rename to Araa from TailsX

unstablemaple commented 1 year ago

@Extravi Before you add my instance, the video section on it doesn't even load, it just hangs then times out, any idea why this happens?

Extravi commented 1 year ago

do it load at any point?

Extravi commented 1 year ago

or did it just take some time

unstablemaple commented 1 year ago

It times out and gives me 504

Extravi commented 1 year ago

did you change the Invidious instance in config?

unstablemaple commented 1 year ago

Yes, and I also white-listed it.

Extravi commented 1 year ago

i might not have api support on that instance or a working api

Extravi commented 1 year ago

https://yt.artemislena.eu/api/v1/search?q=cat

replace with the instance you want to use and test

Extravi commented 1 year ago

last update with the renaming has some bugs btw so i am working on fixing it in the next update with this (not complete)

trying my best to polish and clean up this project

image

unstablemaple commented 1 year ago

@Extravi, it's my Invidious API instance and it works just fine, so the API shouldn't be a problem?

Extravi commented 1 year ago

can I see what you have typed in the configuration file for the api

Extravi commented 1 year ago

also send me a copy of the error on the server

Extravi commented 1 year ago

you can email me privately if you want extravi@extravi.dev

Extravi commented 1 year ago

alright bugs fixed from yesterdays update everything is all good now

Extravi commented 1 year ago

before updating your instance try it on any of my instances

Extravi commented 1 year ago

image image image image

unstablemaple commented 1 year ago

@Extravi, bangs don't work unless you put them at the start of the query. Check this.

Extravi commented 1 year ago

I know about that I think that's how bangs should work idk

Extravi commented 1 year ago

I don't really use bangs so idk

unstablemaple commented 1 year ago

I don't really use bangs so idk

Realistically, most users will search with their privacy-respecting search engine and if they don't like the results they add a bang at the end of the query, so it makes sense to have it there.

TEMtheLEM commented 1 year ago

@Extravi, bangs don't work unless you put them at the start of the query. Check this.

@unstablemaple

I did that by design; I thought of shebangs you'd see in scripting, and how they always came first at the top of all scripts.

I could possibly try changing it to what you're suggesting, but I don't feel that there's enough of a need to do so right now.

I'm open to hear what anyone else may feel about this.

(Also, thanks for hosting Araa/TailsX/another name pending maybe!)

unstablemaple commented 1 year ago

@Extravi @TEMtheLEM I have modified the search() function to have it parse bangs as desired:

   if BANG in query:
            query += " " # Simple fix to avoid a possible error 500
                         # when parsing the query for the bangkey.
            bang_index = query.index(BANG)
            bangkey = query[bang_index+1:query.index(" ", bang_index)].lower()
            if SEARCH_BANGS.get(bangkey) is not None:
                query = query.lower().replace(BANG + bangkey, "").lstrip()
                return app.redirect(SEARCH_BANGS[bangkey].format(query))
            # Remove the space at the end of the query.
            # The space was added to fix a possible error 500 when
            # parsing the query for the bangkey.
            query = query[:len(query) - 1]  

That way, it will be able to detect the bangs wherever they are, in a query like search !g test !yt the function will redirect to google and will leave the YouTube bang as it is. My instance currently has the modified code for testing. If there are no bugs please inform me so I can make a pull request.

Extravi commented 1 year ago

does your instance use 1gb ram 2gb ram?

Extravi commented 1 year ago

you might need 2gb ram because with the system arra uses 1rb ram leaving 1gb free

https://github.com/Extravi/araa-search/issues/74#issuecomment-1762371422 https://github.com/Extravi/araa-search/issues/74#issuecomment-1762383912