A simple python script to download the entire conversation from Facebook, not limited like the one in the data dump provided by Facebook
Outputs the conversation in a JSON format, as well as the JSON for each individual chunk.
Run for both dumper.py
and group_dumper.py
cookie
value to the value you see in Chrome under Request Headers
__user
value to the value you see in Chrome under Form Data
__a
value to the value you see in Chrome under Form Data
__dyn
value to the value you see in Chrome under Form Data
__req
value to the value you see in Chrome under Form Data
fb_dtsg
value to the value you see in Chrome under Form Data
ttstamp
value to the value you see in Chrome under Form Data
__rev
value to the value you see in Chrome under Form Data
You're now all set to start downloading messages.
id
value from theregroup_dumper.py
instead.python dumper.py {id} 2000
, and put the value you retrieved for ID earlierMessages are saved by default to Messages/{id}/
The script sometimes has trouble with very large conversations (>100k messages). Facebook seems to rate limit this, and returns empty responses. In such cases, the script will retry after 30s until it gets a valid response.
It may take the script several tries to get a valid response. DO NOT PANIC.
Interrupting the execution before completion only leaves the JSON chunks, not the stitched file.