GithubHelp home page GithubHelp logo

newsroomdev / theparser Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 204 KB

A mini-version of Google Alerts completed for MIT's 6.00x with Python that creates a customizable newswire.

Python 100.00%

theparser's Introduction

#theParser

Note: This is a completed homework assignment for MIT's 6.00x. I thought it was really cool though, so I decided to post it. Although I did well the course, this project is now deprecated. I'll be building other things, but welcome the pulls to spruce this up a bit.

Directions: Run theParser from the command line using this code:

mkdir theParser
cd theParser
python theParser.py

To change the newsfeed, type

edit triggers.txt

This newswire works by creating new 'triggers' which will fire articles to your newswire every 60 seconds. Customize your newswire using the following format in triggers.txt. A few examples have been provided already, but here are the specs:

[trigger name] [trigger type] [trigger]

trigger name: an arbitrary name used to identify a particular trigger

trigger type: one or combinations of the following types can be expressed to customize your newswire (SUBJECT, TITLE, SUMMARY, PHRASE, AND, OR, NOT). The first three types state where to look for your keyword, PHRASE types look for phrases and the last three logic types can be used in conjunction with trigger names to create complex triggers.

trigger: a keyword, phrase or trigger name to be used in your new trigger.

theparser's People

Contributors

newsroomdev avatar

Watchers

 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.