Giter Site home page Giter Site logo

news-haikus's Introduction

news-haikus

This is a project that uses the Google News API and linguistic processing libraries to turn news headlines and articles into haikus that capture the media in a new light.

Dependencies

The following libraries must be installed before running: PyHyphen Library (pip install pyhyphen) Natural Language Toolkit (pip install -U nltk) News API python library (pip install newsapi-python)

A Google News API key is needed to run this program. It can be obtained at https://newsapi.org/ and added to the config.py file, or replaced on line 11 of newsHaikus.py.

When the program is run, it will print a menu with three selection options. The first prints a haiku book from the day's top news stories. The second prompts the user for a keyword (Note that only extremely relevant keywords will produce results) before printing a haiku book of articles with that keyword. The third option prints books from different news sources that can be specified in the code according to the API source tags.

This program must run on a computer connected to the internet in order to work.

news-haikus's People

Contributors

murphystudebaker avatar dong113 avatar

Stargazers

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