Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

Commit

Permalink
Fixes #49
Browse files Browse the repository at this point in the history
  • Loading branch information
Mincka committed Apr 24, 2018
1 parent 3d2223e commit ae151b0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,6 @@ files.txt
/images
/mp4

.vscode/
.vscode/
dmarchiver_session.dat
*.txt
5 changes: 4 additions & 1 deletion dmarchiver/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,10 @@ class Crawler(object):
_ajax_headers = {
'User-Agent': _user_agent,
'Accept': 'application/json, text/javascript, */*; q=0.01',
'X-Requested-With': 'XMLHttpRequest'}
'Accept-Encoding': 'gzip, deflate, br',
'Referer': 'https://twitter.com/?lang=en',
'X-Requested-With': 'XMLHttpRequest',
'X-Twitter-Active-User': 'yes'}

_max_id_found = False
_session = None
Expand Down

0 comments on commit ae151b0

Please sign in to comment.