diff options
Diffstat (limited to 'bin/get-fb-content.py')
-rw-r--r-- | bin/get-fb-content.py | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/bin/get-fb-content.py b/bin/get-fb-content.py deleted file mode 100644 index 180c7b4..0000000 --- a/bin/get-fb-content.py +++ /dev/null @@ -1,20 +0,0 @@ -import json -import logging -import sys -from os import path - -from facebook_scraper import get_posts - - -BASEDIR = path.dirname(__file__) - -posts = [] -for post in get_posts(sys.argv[1], cookies=path.join(BASEDIR, '../config/facebook.com_cookies.txt'), pages=3): - posts.append({ - 'id': post['post_id'], - 'time': str(post['time']), - 'texts': [t.strip() for t in post['text'].split('\n') if t], - 'images': post['images'] - }) - -print(json.dumps(posts)) |