Skip to content

Commit

Permalink
Merge pull request #440 from flairNLP/change-deafault-user-agent
Browse files Browse the repository at this point in the history
Change default `user-agent` -> `FundusBot`
  • Loading branch information
MaxDall authored Apr 22, 2024
2 parents 28a74d0 + de56266 commit 72d1bef
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/fundus/publishers/de/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ class DE(PublisherEnum):
f"https://www.zeit.de/gsitemaps/index.xml?date={datetime.now().strftime('%Y-%m-%d')}&unit=days&period=1"
),
],
request_header={"user-agent": "Googlebot"},
url_filter=regex_filter(
"/zett/|/angebote/|/kaenguru-comics/|/administratives/|/index(?!.)|/elbvertiefung-[0-9]{2}-[0-9]{2}"
),
Expand Down
2 changes: 1 addition & 1 deletion src/fundus/scraping/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from fundus.logging import basic_logger

_default_header = {"user-agent": "Fundus"}
_default_header = {"user-agent": "FundusBot"}


class SessionHandler:
Expand Down

0 comments on commit 72d1bef

Please sign in to comment.