Giter Club home page Giter Club logo

jopleet's Introduction

jopleet

This program uses the Joplin API and Tweepy to read individual Twitter status URLs, grab their text and images, and store them into new notes in a Joplin notebook.

  1. Copy the example configuration file and create your own

    $ copy jopleet.config.example jopleet.config

    Edit the file and fill in the values:

  2. Open Joplin desktop (warning: tested on macOS only), open preferences and the Web Clipper section. Enable the Web Clipper Service which will make the REST API available.

  3. In that same preference pane, under Advanced Options, you'll find the API authoriaation token. Copy this value into the value of token in your configuration file.

    token = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  4. Create a Twitter dev account with the tokens you need. Their names are in the configuration file and you fill in the values accordingly.

  5. Create a new notebook in Joplin into which jopleet will store all tweets. We also call this a folder -- in Joplin notebooks are called folders.

    $ ./mk-folder.sh  a001
    {
     "title": "a001",
     "id": "491fea8acdb84ada8a766d9e17c3497e",
     "updated_time": 1602257565942,
     "created_time": 1602257565942,
     "user_updated_time": 1602257565942,
     "user_created_time": 1602257565942,
     "type_": 2
    }
    
  6. Copy the value of id above, without the double quotes into the value of parent_folder = in your configuration file.

    parent_folder = 491fea8acdb84ada8a766d9e17c3497e
  7. Verify that the Markdown template in jopleet.py which will be written to each note is the way you want it to be; change accordingly.

  8. Create the Python environment

    $ python3 -mvenv env.v3
    $ env.v3/bin/pip install -r requirements.txt
    
  9. Test it

    $ env.v3/bin/python ./jopleet.py https://twitter.com/jpmens/status/1085859260783837185
  10. The result ought to be a note in Joplin which looks like this

joplin note

  1. Options option "-t" accepts a comma-separated list of existing tags which will be associated with the new note.

jopleet's People

Contributors

jpmens avatar

Watchers

James Cloos avatar

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.