Skip to content

Commit

Permalink
Merge pull request #93 from pasqLisena/patch-1
Browse files Browse the repository at this point in the history
Update User Agent
  • Loading branch information
ZhiyuanChen authored Feb 22, 2021
2 parents 7ccec64 + 9f1b16e commit fb36a8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions icrawler/crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ def set_session(self, headers=None):
if headers is None:
headers = {
'User-Agent':
('Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3)'
('Mozilla/5.0 (Windows NT 10.0; Win64; x64)'
' AppleWebKit/537.36 (KHTML, like Gecko) '
'Chrome/48.0.2564.116 Safari/537.36')
'Chrome/88.0.4324.104 Safari/537.36')
}
elif not isinstance(headers, dict):
raise TypeError('"headers" must be a dict object')
Expand Down

0 comments on commit fb36a8c

Please sign in to comment.