Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
chrispederick opened this issue Jun 23, 2019 · 1 comment
Open

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

chrispederick opened this issue Jun 23, 2019 · 1 comment

Comments

@chrispederick
Copy link

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?

@bekopharm
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants