Skip to content

Instapaper-like application with Flask and the newspaper module

Notifications You must be signed in to change notification settings

afreeorange/goosepaper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Goosepaper

Being a small Flask application written around Newspaper.

Screenshots

Expanded View of Articles Condensed View of Articles Single Article Sample Search

Installation

  • Have a MongoDB instance running. Default is localhost:27017. Change this in settings.py.
  • Run the install script, then source ./bin/activate
  • Run ./start flask for a dev server.
    Running ./start will start 10 Gunicorn workers.

Managing Articles

Web

Click the "+" icon to add a URL.

Command-line

To save

curl -X POST \
	 -H "article: http://time.com/jonathan-ive-apple-interview" \
	 http://localhost:5000/

To delete

curl -X DELETE http://localhost:5000/article/533c67a364b6c00bf64864a3

Or, source bin/activate and then

python save.py --url=http://article

Email

  • Edit mail.py to change the host and port values.

  • Then set up an alias and pipe the email to mail.py. For example, this is what I have in /etc/aliases

      Nlr5zbrLCgwTOA3ApKKa: 	|"python /path/to/mail.py"
    
  • Send an email to alias with the subject line containing the URL.

To Do

  • Authentication
  • Correct HTTP status codes
  • API
  • Use HTTP data instead of headers for URIs
  • Ability to edit articles
  • Export to HTML and PDF
  • Delete confirmation

License

See LICENSE

About

Instapaper-like application with Flask and the newspaper module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published