diff options
Diffstat (limited to 'source/utils.py')
-rwxr-xr-x | source/utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/utils.py b/source/utils.py index 1cb1af6f..aaaa558c 100755 --- a/source/utils.py +++ b/source/utils.py @@ -284,7 +284,8 @@ def search_feed(url): """ soup = None try: - page = urllib.request.urlopen(url) + req = urllib.request.Request(url, headers={'User-Agent' : conf.USER_AGENT}) + page = urllib.request.urlopen(req) soup = BeautifulSoup(page) except: return None |