https://github.com/yell/evernote-url2clip
:hammer: Batch-clip multiple web pages from a text file.
https://github.com/yell/evernote-url2clip
evernote script tool utility
Last synced: 5 months ago
JSON representation
:hammer: Batch-clip multiple web pages from a text file.
- Host: GitHub
- URL: https://github.com/yell/evernote-url2clip
- Owner: yell
- License: mit
- Created: 2017-10-27T16:43:42.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-07-22T12:32:13.000Z (about 6 years ago)
- Last Synced: 2025-03-30T22:32:24.756Z (7 months ago)
- Topics: evernote, script, tool, utility
- Language: Python
- Homepage:
- Size: 32.9 MB
- Stars: 21
- Watchers: 2
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](#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
```bash
git clone https://github.com/yell/evernote-url2clip.git
cd evernote-url2clip
```
* Install dependencies
```bash
pip install -r requirements.txt
```
* Download driver for Chrome [here](https://sites.google.com/a/chromium.org/chromedriver/downloads)
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
```bash
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](https://www.anaconda.com/download/#windows)
* Version can be checked from Anaconda prompt:
```bash
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`):
```bash
conda install selenium=3.9.0
conda install tqdm=4.14.0
```
* Download [chrome driver](https://sites.google.com/a/chromium.org/chromedriver/downloads) 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:
```bash
usage: evernote_url2clip.py [-h] [--clip-type TYPE] [--clip-timeout SEC]
FILEPATHpositional arguments:
FILEPATH file path with urlsoptional 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`)
```bash
lynx -dump fil_export.html | awk '/http/{print $2}' > links.txt
```
to create desired text file.