fb-page-chat-download icon indicating copy to clipboard operation
fb-page-chat-download copied to clipboard

Add "time range" to get message

Open voldermort28 opened this issue 6 years ago • 1 comments

Hi eisenjulian, your script run so good, but I cannot know the time range that your script get conversation, so can you update your script, add "time range" and "message number per person" (because sometime, I dont want to get all message from each person) as parameter to get conversation?

Thank you.

voldermort28 avatar Sep 08 '18 16:09 voldermort28

Hello @voldermort28 the script accepts --since and --until parameters to limit the dates to get messages, but currently it doesn't support a limit on quantity.

We could add a paramenter --limit and return early in the function here https://github.com/eisenjulian/fb-page-chat-download/blob/master/run.py#L53 when we have enough messages for the thread.

If you have the time to make that change, I'll gladly accept the PR!

eisenjulian avatar Sep 10 '18 00:09 eisenjulian