Coder Social home page Coder Social logo

shortform-to-readwise's Introduction

Shortform to Readwise

Shortform to Readwise

This script scrapes Shortform for highlights and sends them to Readwise. Accounts with both Shortform and Readwise are required.

Usage

For more detailed instructions, check out my blog post here.

Enter the required data in variables.py.

authToken is the Authorization token that you use for Shortform. Shortform unfortunately doesn't expose this, but you can find out yours by opening up DevTools in Chrome or Firefox and navigating to, for example, your highlights page. In the DevTools Network tab, look for the request with the name ?sort=date and click on it. In the Request Headers panel, you'll see a header Authorization, with the value Basic <your token>. Copy everything after Basic and paste it into variables.py. (Note: There shouldn't be any spaces in the token.)

readwiseToken is your API token for Readwise, which you can get here.

Clone or download this repo, cd into it, and run the main script: python3 gethighlights.py .

You should be able to see your highlights appear in your Readwise library.

To run this script automatically, you can use crontab or similar.

shortform-to-readwise's People

Contributors

nicolevanderhoeven avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

shortform-to-readwise's Issues

Authentication Issue?

Not sure if anyone else is having this issue, but it seems the authentication method may not be working the same way it was at the time this was released??? While I can get the authToken, it doesn't seem to allow for authentication using that method. I've tried in Postman and can't get a valid response. I'm assuming the call is similar to this:

https://www.shortform.com/api/highlights/?sort=date&Basic =XXXXXXXXXXXX

I am on the 5 day trial ... wonder if that has anything to do with not allowing the API to authenticate in this way????

Any thoughts?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.