Skip to content

Conversation

@bltavares
Copy link
Contributor

Summary

When trying to import my pocket library I got a lot of KeyError on Python. Pocket API has a few idiosyncrasies, such as sometimes returning the keys on json, sometimes not.

sh archivebox add --parser pocket_api pocket://my_username

Gave me this errors
File "/app/archivebox/parsers/pocket_api.py", line 54, in link_from_article title = article['resolved_title'] or article['given_title'] or url KeyError: 'resolved_title'

This commit are the patches I've changed to successfully import my library

Related issues

#528

Changes these areas

  • Bugfixes
  • Feature behavior
  • Command line interface
  • Configuration options
  • Internal architecture
  • Snapshot data layout on disk

When trying to import my pocket library I got a lot of ` KeyError`  on Python. Pocket API has a few idiosyncrasies, such as sometimes returning the keys on json, sometimes not.

` ` ` sh
archivebox add --parser pocket_api pocket://my_username
` ` ` 

Gave me this errors
` ` ` 
  File "/app/archivebox/parsers/pocket_api.py", line 54, in link_from_article
    title = article['resolved_title'] or article['given_title'] or url
KeyError: 'resolved_title'
` ` ` 

This commit are the patches I've changed to successfully import my library
@mAAdhaTTah
Copy link
Contributor

@pirate Can we merge this? I'm running into this myself.

@pirate
Copy link
Member

pirate commented Nov 12, 2021

thanks @bltavares!! Sorry for the delay, have been on a road trip without my laptop the last few months, just getting back into the swing of things now.

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

Successfully merging this pull request may close these issues.

3 participants