Skip to content

Instantly share code, notes, and snippets.

@wildeyes
Created September 8, 2021 13:56
Show Gist options
  • Save wildeyes/fca70bb64a069512ab32cd00ded1947c to your computer and use it in GitHub Desktop.
Save wildeyes/fca70bb64a069512ab32cd00ded1947c to your computer and use it in GitHub Desktop.
Convert get pocket app export html file to JSON you can work with
// open ril_export.html, run this in dev tools, paste wherever you need
const _ = e => $$(e).map(ele => [ele.text, ele.href, ele.attributes.time_added.value, ...ele.attributes.tags.value.split(',')]);
copy({ unread: _('ul:first-of-type a'), read: _('ul:last-of-type a') })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment