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

fix: Replace ss_mkt by bing_market to avoid anomaly detection #141

Merged
merged 3 commits into from
Nov 22, 2024

Conversation

flaviogoncalves
Copy link
Contributor

This seems to be the best way to handle the problem with DDG anomaly detection. In production we simply removed ss_mkt and worked, but we are seeing other libraries such as duckduckgo_search.py using bing_market. I just set the default to en-US, but eventually there may be a better way.

"bing_market": f"{region[3:]}-{region[:2].upper()}",
https://github.com/sippulse/duck-duck-scrape/blob/master/src/search/search.ts

ss_mkt removed from the code to avoid anomaly detection
Replaced ss_mkt by bing_market.
Replace ss_mkt by bing_market, but let the options.
@Snazzah Snazzah added the type: enhancement New feature or request label Nov 18, 2024
@Snazzah
Copy link
Owner

Snazzah commented Nov 18, 2024

Can't edit the PR files, but the query in the search tests also need to be updated.

@Snazzah Snazzah changed the title Replace ss_mkt by bing_market to avoid anomaly detection fix: Replace ss_mkt by bing_market to avoid anomaly detection Nov 22, 2024
@Snazzah Snazzah merged commit 4392640 into Snazzah:master Nov 22, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants