RaghavSood / FBMessageScraper

A python script to download facebook chats
188 stars 42 forks source link

JSON's all have the same data #10

Open seanrayment opened 7 years ago

seanrayment commented 7 years ago

I am having an issue when running the python script, for group_dumper at least, all of the generated JSON files contain the exact same data. Is this a known issue?

seanrayment commented 7 years ago

Whoops! I ran the file with the argument 2000 so it was just downloading the 2000 most recent messages repeatedly.

j6k4m8 commented 7 years ago

2000 should be a valid argument — are you still having this problem?

seanrayment commented 7 years ago

That is odd then. Yes, I'm still having the issue. When I run the script it will run indefinitely and download the most recent 2000 messages into the 0-2000, 2000-4000 files and so on.

j6k4m8 commented 7 years ago

This is due to the timestamping that Facebook added to their requests. You can either use @tomer8007's solution in #3, or you can use my fork (which also includes a header-file parser) at j6k4m8/FBMessageScraper