Twine and Pi

Here is a little script to get data from your Twine using a Raspberry Pi (or any other computer that runs Python ….).

The script can be split into 4 parts:

  1. Setup
  2. Login
  3. Retrieve data
  4. Parse and display data

1. Setup

Nothing special here, just some imports and some initialisation. Please note that cj (the cookie jar) will be where cookies will be stored.

2. Login

Login is doen through HTTP. A cookies is return which we need to retrieve the data in the next step.

3. Retrieve data

Login is doen through HTTP. A cookies is return which we need to retrieve the data in the next step.

 4. Retrieve data

Login is doen through HTTP. A cookies is return which we need to retrieve the data in the next step.

 

Thanks to Jay Erickson (a Twine community member) for the explanation on how to access Twine data!

Leave a Reply

Your email address will not be published. Required fields are marked *