Skip to content

Commit

Permalink
cli._download_file(): use impersonate="chrome_129"
Browse files Browse the repository at this point in the history
  • Loading branch information
deedy5 committed Oct 7, 2024
1 parent dce4838 commit 298aee2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion duckduckgo_search/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def _sanitize_keywords(keywords):

def _download_file(url, dir_path, filename, proxy):
try:
resp = primp.Client(proxy=proxy, impersonate="chrome_128", timeout=10, verify=False).get(url)
resp = primp.Client(proxy=proxy, impersonate="chrome_129", timeout=10, verify=False).get(url)
if resp.status_code == 200:
with open(os.path.join(dir_path, filename[:200]), "wb") as file:
file.write(resp.content)
Expand Down

0 comments on commit 298aee2

Please sign in to comment.