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

Feature request for custom date range #122

Open
alybel opened this issue Aug 21, 2024 · 1 comment
Open

Feature request for custom date range #122

alybel opened this issue Aug 21, 2024 · 1 comment

Comments

@alybel
Copy link

alybel commented Aug 21, 2024

Great project that you're working on, Kudos!

If not implemented yet, it would be great to have the possibility to use custom date ranges for the google search.

Thanks!

@jiezi4ai
Copy link

Custom date range is already there. You shall either:

  • specify tbs parameter in search function, like search('"Breaking Code" WordPress blog', tbs="qdr:y1", stop=20), where y[number] / m[number] / d[number] is same as described in dateRestrict parameter here.
:param str tbs: Time limits (i.e "qdr:h" => last hour,
        "qdr:d" => last 24 hours, "qdr:m" => last month).
  • or you shall add before and after with specific date in your query term, like search('"Breaking Code" WordPress blog before:2024', stop=20), search('"Breaking Code" WordPress blog after:2023-10-01', stop=20)

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

No branches or pull requests

2 participants