Skip to content

Commit

Permalink
Remove brotli compression from accepted encodings for indeed sessions
Browse files Browse the repository at this point in the history
Resolves an issue where indeed responses are not being decoded correctly.
Might resolve issue #137
  • Loading branch information
marchbnr authored and PaulMcInnis committed Mar 29, 2021
1 parent 446e9e0 commit 05e7712
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jobfunnel/backend/scrapers/indeed.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def headers(self) -> Dict[str, str]:
return {
'accept': 'text/html,application/xhtml+xml,application/xml;'
'q=0.9,image/webp,*/*;q=0.8',
'accept-encoding': 'gzip, deflate, sdch, br',
'accept-encoding': 'gzip, deflate, sdch',
'accept-language': 'en-GB,en-US;q=0.8,en;q=0.6',
'referer':
f'https://www.indeed.{self.config.search_config.domain}/',
Expand Down

0 comments on commit 05e7712

Please sign in to comment.