diff options
author | emkael <emkael@tlen.pl> | 2021-04-02 11:28:04 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2021-04-02 11:28:04 +0200 |
commit | 7bb38b8397d640a2d8583820bf6c3864cf51e34c (patch) | |
tree | 5a7df83429eb388cc2a0e1b37883df58843fc984 /bin | |
parent | bb8d5d0520e078f157448a7d3b4ce196f447a627 (diff) |
Adding placeholder text and image content to FB provider
Diffstat (limited to 'bin')
-rw-r--r-- | bin/get-fb-content.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/get-fb-content.py b/bin/get-fb-content.py index c7238e0..180c7b4 100644 --- a/bin/get-fb-content.py +++ b/bin/get-fb-content.py @@ -13,7 +13,8 @@ for post in get_posts(sys.argv[1], cookies=path.join(BASEDIR, '../config/faceboo posts.append({ 'id': post['post_id'], 'time': str(post['time']), - 'texts': [t.strip() for t in post['text'].split('\n') if t] + 'texts': [t.strip() for t in post['text'].split('\n') if t], + 'images': post['images'] }) print(json.dumps(posts)) |