Giter VIP home page Giter VIP logo

daily-brief's Introduction

daily-brief

A python script that generates a daily briefing email ideal for having Siri or OS X's speech tools read back to you.

Installation

I always recommend using virtualenv and virtualenvwrapper and so I've only done the following inside a virtualenv.

  1. pip install -r requirements.txt (installs feedparser, nltk and their dependencies.)
  2. run ./brief.py --nltk-first-run to install the necessary nltk corpora and tokenizers (used for the summarization feature)
  3. create a file called brief.config that will hold the configuration values in a JSON format.

Configuration (brief.config)

Here's a sample of what the contents should look like:

{
	"name": "Sir",
	"from": "[email protected]",
	"to": "[email protected]",
	"feeds": {
		"headlines": "http://www.npr.org/rss/rss.php?id=1001",
		"weather": "http://w1.weather.gov/xml/current_obs/KBFI.rss"
	},
	"smtp": {
		"host": "localhost"		
	}
}

(It should be noted that the script is over-optimized for weather.gov and npr.org feeds.)

Running

If you'd like to see what the output will look like or want to pipe the output somewhere else use the --to-text flag.

Presumbly you'll want to have a cron job send this every morning:

0 7 * * * the/path/to/brief.py

That's really it for now. There should probably be more options and such.

daily-brief's People

Contributors

soypunk avatar

Watchers

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