Skip to main content

Earth Reader for Web

Project description

https://raw.github.com/earthreader/web/master/artwork/icon_256x256.png

Earth Reader for Web

Web frontend of Earth Reader.

Distributed under AGPLv3 or later.

Install

You can install Earth Reader for Web using pip:

$ pip install EarthReader-Web

Then you can use command earthreader.

$ earthreader -h

Repository

Repository is a directory to store data. It can be inside of Dropbox or Google Drive folder to be synchronized with other devices. You also can synchronize the repository directory using rsync.

If the path that doesn’t exist yet is passed to --repository option or EARTHREADER_REPOSITORY environment variable the new folder will be automatically created.

Standalone server

You can run Earth Reader for Web using its standalone server:

$ earthreader server /path/to/repository/dir
$ earthreader server -p 8080 /path/to/repository/dir  # listen to 8080 port
$ earthreader server -d /path/to/repository/dir  # debug mode

And then open http://localhost:<port>/ with your browser.

WSGI server

Earth Reader for Web is actually an ordinary WSGI-compliant web application, so you can run it using your preferred WSGI server e.g. Gunicorn, mod_wsgi. The WSGI endpoint is earthreader.web.app:app. Note that you can provide the path of repository by setting EARTHREADER_REPOSITORY environment variable.

For example, you can run it on Gunicorn:

$ export EARTHREADER_REPOSITORY=/path/to/repository/dir
$ gunicorn earthreader.web.app:app

Or you can attach Earth Reader to Apache with mod_wsgi like this:

<VirtualHost *:80>
  ServerName yourwebsite.com
  WSGIDaemonProcess earthreader user=www-data group=www-data threads=1
  WSGIScriptAlias / /var/wsgi/earthreader.wsgi

  <Directory /var/wsgi/>
     WSGIProcessGroup earthreader
     WSGIApplicationGroup %{GLOBAL}

     Order deny,allow
     Allow from all
     # We recommend you to use authorization for security.
     AuthType Basic
     AuthName "Private rss reader"
     AuthUserFile /var/wsgi/earthreader.htpasswd
     Require valid-user
  </Directory>
</VirtualHost>
#!/usr/bin/env python
#/var/wsgi/earthreader.wsgi
import sys
from earthreader.web.app import app as application

application.config.update(
    REPOSITORY='/path/to/repository/dir'
)

And open http://yourwebsite.com/ in your browser.

Crawler

You can manually crawl feeds as well via CLI:

$ earthreader crawl /path/to/repository/dir

Keyboard shortcuts

Vim-inspired keyboard shortcuts are also available:

  • j/k: Older/newer entry.

  • n/p: Next/previous subscription.

  • o: Open entry in new tab.

  • r: Refresh the feed.

  • s: Star/unstar.

  • u or m: Mark as unread.

  • ?: This help message.

Changelog

Version 0.1.0

Released on December 23, 2013. Alpha version.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

EarthReader-Web-0.1.0.tar.gz (85.1 kB view details)

Uploaded Source

File details

Details for the file EarthReader-Web-0.1.0.tar.gz.

File metadata

File hashes

Hashes for EarthReader-Web-0.1.0.tar.gz
Algorithm Hash digest
SHA256 29d1d4afe0d4c4c88bb11ddbf1828e7835fbfbcbe86e50a3739eae6e2dfb92ba
MD5 905809c68e45929e569362e2f390ecee
BLAKE2b-256 9daf155a440e77f713b7dded5a3d139925f0b0635eddeb6e0510d35a5342a43d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page