summaryrefslogtreecommitdiff
path: root/bin/get-fb-content.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2022-01-31 21:39:23 +0100
committeremkael <emkael@tlen.pl>2022-01-31 21:39:23 +0100
commit9601f3be1ee5be711671a922c3282339aeb1ddf4 (patch)
tree7b402675b2029e49b5756f59c2e5ef77db8186cc /bin/get-fb-content.py
parent489816e3573afff315f61292ba2e1afc2fe96a16 (diff)
Another round of FB crap
Diffstat (limited to 'bin/get-fb-content.py')
-rw-r--r--bin/get-fb-content.py20
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))