polar: move to top level, add page support

This commit is contained in:
Dima Gerasimov 2021-05-29 13:10:11 +01:00 committed by karlicoss
parent e8be20dcb5
commit 2a4bddea79
5 changed files with 19 additions and 17 deletions

View file

@ -23,7 +23,7 @@ If you have some issues with the setup, see [[file:SETUP.org::#troubleshooting][
- [[#mytwittertwint][my.twitter.twint]]
- [[#mytwitterarchive][my.twitter.archive]]
- [[#mylastfm][my.lastfm]]
- [[#myreadingpolar][my.reading.polar]]
- [[#mypolar][my.polar]]
- [[#myinstapaper][my.instapaper]]
- [[#mygithubgdpr][my.github.gdpr]]
- [[#mygithubghexport][my.github.ghexport]]
@ -79,7 +79,7 @@ modules = [
('twint' , 'my.twitter.twint' ),
('twitter_archive', 'my.twitter.archive' ),
('lastfm' , 'my.lastfm' ),
('polar' , 'my.reading.polar' ),
('polar' , 'my.polar' ),
('instapaper' , 'my.instapaper' ),
('github' , 'my.github.gdpr' ),
('github' , 'my.github.ghexport' ),
@ -197,7 +197,7 @@ for cls, p in modules:
"""
export_path: Paths
#+end_src
** [[file:../my/reading/polar.py][my.reading.polar]]
** [[file:../my/polar.py][my.polar]]
[[https://github.com/burtonator/polar-bookshelf][Polar]] articles and highlights

View file

@ -229,7 +229,7 @@ Polar doesn't require any setup as it accesses the highlights on your filesystem
You can try if it works with:
: python3 -c 'import my.reading.polar as polar; print(polar.get_entries())'
: python3 -c 'import my.polar as polar; print(polar.get_entries())'
** Google Takeout
If you have zip Google Takeout archives, you can use HPI to access it:
@ -307,11 +307,11 @@ It's understandable from the app developer's perspective, but it makes things fr
# todo hmm what if I could share deserialization with Polar app?
Here comes the HPI [[file:../my/reading/polar.py][polar module]]!
Here comes the HPI [[file:../my/polar.py][polar module]]!
: |💾 ~/.polar (raw JSON data) |
: ⇓⇓⇓
: HPI (my.reading.polar)
: HPI (my.polar)
: ⇓⇓⇓
: < python interface >