Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Araa search results filterable by time periods (e.g., last day, month, or year) #174

Open
RobJoy opened this issue Jan 22, 2025 · 2 comments · May be fixed by #175
Open

Make Araa search results filterable by time periods (e.g., last day, month, or year) #174

RobJoy opened this issue Jan 22, 2025 · 2 comments · May be fixed by #175

Comments

@RobJoy
Copy link

RobJoy commented Jan 22, 2025

Anyone know how to configure Araa to work similarly to google and other engines in this matter?

Google supports qdr parameters:
qdr:d → Last day
qdr:w → Last week
qdr:m → Last month
qdr:y → Last year

app.get('/search', (req, res) => { const query = req.query.q; const timeFilter = req.query.time_filter; // e.g., 'qdr:m' for last month const searchUrl = https://www.google.com/search?q=${query}&tbs=${timeFilter || ''}; fetch(searchUrl) .then(response => response.text()) .then(data => res.send(data)); });

@amogusussy
Copy link
Contributor

Google search doesn't currently work on the main instance/repo. #173 fixes this, but until that's merged, there's no way.

There isn't currently a graphical or URL argument way of filtering the date, however, you can use Google Dorking to filter results by date.

Once #173 is merged, I'll make a PR to add a way of changing the date.

@RobJoy
Copy link
Author

RobJoy commented Jan 22, 2025

Too many other issues.
I went to 4get search.
It seems miles better out of the box.

@amogusussy amogusussy linked a pull request Jan 23, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants