koenrh / delete-tweets

Delete tweets from your timeline.
ISC License
792 stars 107 forks source link

KeyError: 'id_str' #76

Closed lilyli closed 4 years ago

lilyli commented 4 years ago

When I run delete-tweets --until 2017-12-01 tweet.js, I get the following error:

Traceback (most recent call last): File "/usr/local/bin/delete-tweets", line 11, in <module> sys.exit(main()) File "/usr/local/lib/python3.7/site-packages/deletetweets/__main__.py", line 53, in main deletetweets.delete(args.file, args.until_date, filters, args.spare_ids, args.min_likes, args.min_retweets, args.dry_run) File "/usr/local/lib/python3.7/site-packages/deletetweets/deletetweets.py", line 72, in delete destroyer.destroy(row["id_str"]) KeyError: 'id_str'

Any idea how to fix this issue?

visuphi commented 4 years ago

I have this issue too!

jclwilson commented 4 years ago

Same

d-lowl commented 4 years ago

Can confirm

d-lowl commented 4 years ago

I think I got it working. There was a minor file structure change or something. Will make a pull request when confirm

d-lowl commented 4 years ago

Update: yeah, my idea was right, however there's already a pull request with the fix

75

Feel free to use their version, until it's merged I guess

koenrh commented 4 years ago

Thanks for reporting! Should be fixed in the latest version: pip install -U delete-tweets.