Git Product home page Git Product logo

evernote-url2clip's Introduction

evernote-url2clip

Clip webpages to Evernote from a text file. Using this program I successfully clipped hundreds of web pages from Chrome and Pocket automatically. The only thing I couldn't automate is enabling shortcuts for Web Clipper extension (see demo). Tested on Ubuntu 16.04 and on Windows 8.1.

Demo

How to install

Linux (tested on Ubuntu 16.04, Python 2.7.12)

  • Download source
git clone https://github.com/yell/evernote-url2clip.git
cd evernote-url2clip
  • Install dependencies
pip install -r requirements.txt
  • Download driver for Chrome here and make sure its location is added to PATH (or copy to /usr/bin/ or /usr/local/bin/)

  • I tested program using extension (.crx) provided in the current directory. Also you can download newer one from https://chrome-extension-downloader.com by typing its ID (go chrome://extensions/, check Developer mode, and find out ID) and put in the root directory of this project.

  • You can also add the script to PATH by running

make install

Windows (tested on Windows 8.1, Anaconda 4.4.11)

  • Download source (e.g. as zip and unzip somewhere)
  • Download and install Anaconda
  • Version can be checked from Anaconda prompt:
conda -V
# conda 4.4.11
  • Run Anaconda prompt and explicitly install requirements (note that tildes such as selenium~=3.9.0 does not work with conda install):
conda install selenium=3.9.0
conda install tqdm=4.14.0
  • Download chrome driver and unzip it to X:/Windows/System32
  • Run script in conda prompt by navigating to root folder of the project and use directions from the next section

How to run

  • Copy and fill config.yaml.example file with Evernote credentials.
  • Run program:
usage: evernote_url2clip.py [-h] [--clip-type TYPE] [--clip-timeout SEC]
                            FILEPATH

positional arguments:
  FILEPATH            file path with urls

optional arguments:
  -h, --help          show this help message and exit
  --clip-type TYPE    how to clip content: 'A' - article, 'B' - bookmark, 'C'
                      - simplified article, 'E' - email, 'F' - full page, 'M'
                      - screenshot, 'P' - pdf, ... [see extension for more]
                      (default: A)
  --clip-timeout SEC  default timeout (in seconds) to clip pages (default:
                      120)

How to migrate from Chrome (bookmarks)

Simply select and copy-paste links from Chrome bookmark manager to a text file.

How to migrate from Pocket

Go to

Settings > Export > Export to HTML file

download HTML file (fil_export.html by default) and run (install lynx)

lynx -dump fil_export.html | awk '/http/{print $2}' > links.txt

to create desired text file.

evernote-url2clip's People

Contributors

yell avatar

Watchers

 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.