Giter VIP home page Giter VIP logo

readability-scraper's Introduction

Readability Scraper

Purpose: Scrape bookmark links out of Readability via web interface.

Warning: I have closed my Readability account. I am therefore unable to help with any issues you might have. I nonetheless hope you find this project helpful.

Table of Contents

  1. Background
  2. Installation
  3. Using the Scraper

Background

I'm a big fan of Readability, and have been using the service for years. Unfortunately, Readability announced on August 31st of 2016 that they would be closing down their bookmarking service on September 30.

To ease transitioning away from the service, Readability advertised their export tool. Despite multiple attempts to use it before September 30th, I was unable to export my bookmarks.

Once October came around, things were looking bleak: I couldn't export, the API had shutdown, and support wasn't responding to my emails.

Luckily, the web interface still lists my bookmarks! My final resort was thus to write this scraper.

If you too had trouble exporting your bookmarks, or simply didn't have a chance to do so in September, this project should be able to help you.

Installation

Requirements:

  • Python 3.5
  • Pip

Create a virtual environment, and install the depencies defined by the project with pip.

$ pip install -r requirements.txt

Using the Scraper

The scraper uses the Scrapy project, and may be invoked from the command line. You will need your Readability username and password.

$ # replace USERNAME and PASSWORD in command below
$ scrapy crawl readability -a username="USERNAME" -a password="PASSWORD" -o links.json

The output of the scraper is JSON, and it maintains the structure it finds the links in: 20 links per page. It also notes whether the page was a standard page or an archived page.

While this may be desirable to have this format, it is probably more desirable to have a flat list of all of the links available. The flatten_link_results.py script will take JSON output found in a file named links.json and will output a flat file with a URL on each line, named links.txt. It assumes the names of these files, and takes no arguments, as demonstrated in the code below.

$ python flatten_link_results.py

readability-scraper's People

Contributors

jambonrose avatar

Stargazers

 avatar taiyo tamura avatar

Watchers

James Cloos avatar  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.