diff options
-rwxr-xr-x | kadomatsu-rss.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kadomatsu-rss.py b/kadomatsu-rss.py index 83594c8..85f2176 100755 --- a/kadomatsu-rss.py +++ b/kadomatsu-rss.py @@ -25,6 +25,8 @@ feed = feedgenerator.Rss201rev2Feed( s = requests.Session() +s.headers.update({'User-Agent': 'kadomatsu-rss https://427738.xyz/kadomatsu-rss.html'}) + def get_soup(url): site = s.get(url) site.encoding = "utf-8" |