ditchbook icon indicating copy to clipboard operation
ditchbook copied to clipboard

bin/ingest export 'list' object has no attribute 'get'

Open chrispederick opened this issue 6 years ago • 1 comments

When I run bin/ingest export I get the following error:

Traceback (most recent call last):
  File "bin/ingest", line 24, in <module>
    for post in posts.get('status_updates', []):
AttributeError: 'list' object has no attribute 'get'

This sounds like maybe a parsing error, but I also had to jump through some hoops to get Python working on my Mac so it's possible something is not quite right there either.

Any ideas?

chrispederick avatar Jun 23 '19 16:06 chrispederick

bin/ingest export ‘list’ object has no attribute ‘get’ · Issue #6 · cleverdevil/ditchbook ( GitHub)

> When I run bin/ingest export I get the following error: Traceback (most recent call last): File "bin/ingest", line 24, in <module> for post in posts.get('status_updates', []…

Looks like FB changed it’s export format:

[{"timestamp": 1566833332,"attachments": [],"data": [{"post": ""},{"update_timestamp": 1566833332}],"title": ""}]

This is not what Ditchpost expects.

The posts file is also no longer posts/your_posts.json but posts/your_posts_01.json

Also on

bekopharm avatar Aug 31 '19 21:08 bekopharm