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

Search reusing queries #192

Open
2 tasks done
qtie-code opened this issue Aug 29, 2024 · 3 comments
Open
2 tasks done

Search reusing queries #192

qtie-code opened this issue Aug 29, 2024 · 3 comments
Labels
bug Something isn't working stale

Comments

@qtie-code
Copy link

qtie-code commented Aug 29, 2024

Before submitting a bug report...

  • This bug wasn't already reported.
    (I have checked every bug report on GitHub)

  • I've cleared the sessions folder.

Branch

master

Commit

0a94091

Describe the bug

I run the script multiple times a day as a fail-safe and to ensure at least once it completes.
It will reuse identical queries on the same day, but bing search does not count identical queries, this leads to repeated failed attempts.
It would be good if the queries alternated more and not reused.

Copy and paste your error

2024-08-29 10:56:45,333 [INFO] [BING] Remaining searches=9
2024-08-29 10:56:50,972 [DEBUG] terms=['capri sun', 'capri sun sirup', 'capri sun eppelheim', 'capri sun eis', 'capri sun freezies', 'capri sun jobs', 'capri sun gewinnspiel', 'capri sun multivitamin', 'capri-sun orange', 'capri-sun fze', 'capri-sun orange 200ml', 'capri-sun freezies orange']
2024-08-29 10:56:50,973 [DEBUG] rootTerm=capri-sun
2024-08-29 10:56:51,023 [DEBUG] term=capri sun
2024-08-29 10:57:09,446 [INFO] [BING] Remaining searches=8
2024-08-29 10:57:14,864 [DEBUG] terms=['moers messerattacke', 'moers', 'moers plz', 'moers milcherzeuger info', 'moersdorf', 'moers news', 'moerschen', 'moers wetter', 'moers frischeprodukte', 'moers festival', 'moers bundesland', 'moerschen tönisvorst']
2024-08-29 10:57:14,864 [DEBUG] rootTerm=moers
2024-08-29 10:57:14,903 [DEBUG] term=moers messerattacke
2024-08-29 10:57:18,868 [DEBUG] [BING] Search attempt not counted 1/8, sleeping 14.0625 seconds...
2024-08-29 10:57:32,962 [DEBUG] term=moers
2024-08-29 10:57:36,302 [DEBUG] [BING] Search attempt not counted 2/8, sleeping 28.125 seconds...
2024-08-29 10:58:04,461 [DEBUG] term=moers plz
2024-08-29 10:58:08,174 [DEBUG] [BING] Search attempt not counted 3/8, sleeping 56.25 seconds...
2024-08-29 10:59:04,471 [DEBUG] term=moers milcherzeuger info
2024-08-29 10:59:07,572 [DEBUG] [BING] Search attempt not counted 4/8, sleeping 112.5 seconds...
2024-08-29 11:01:00,127 [DEBUG] term=moersdorf
2024-08-29 11:01:03,447 [DEBUG] [BING] Search attempt not counted 5/8, sleeping 225.0 seconds...

Screenshots

N/A

Value of dashboard variable

N/A

@qtie-code qtie-code added the bug Something isn't working label Aug 29, 2024
@Mrocznv
Copy link

Mrocznv commented Aug 29, 2024

Same situation in Polish searches

It would be good if the queries alternated more and not reused.

Im up to this ^

@atzaveri
Copy link

atzaveri commented Sep 5, 2024

i've attempted to avoid all 8 tries editing searches.py, but it keeps trying 8 times with repeated queries, how to reduce or use root terms only?

Copy link

github-actions bot commented Jan 4, 2025

This issue is stale because it has been open for 14 days with no activity.

@github-actions github-actions bot added the stale label Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

3 participants