Git Product home page Git Product logo

pretty_parser's Introduction

Pretty Parser

A personalized RSS feed aggregator.

How to use

Run the applet

  1. Windows: Download the Pretty Parser for Windows directory. Run PrettyParser.exe. Enjoy.
  2. Linux: The Windows applet works perfectly via Wine. You can install Wine from the Ubuntu Software Center or get it here.
  3. macOS: No luck for you guys, yet.

Run natively in Python

This works on any OS, obviously.
You'll need Python 3.x installed on your system along with the Beautiful Soup and Requests modules, and probably LXML as well. (All available via pip and easy install)

How it works

  1. The fetch() function downloads the XML files from the website's server.
  2. The populate() function creates a local database from all the available XML feeds.
  3. The user_queries() function takes in user preference.
  4. The pparser() function assembles 25 random articles (by default) from all the sources and displays them in your system's default browser.
  5. The style.css file is to make things look Pretty.

Of course you can edit the feeds dictionary and the corresponding feed_tags list to whichever feeds you want to follow.

Features

Listed newest first -

  • User can choose how many articles to view per page.
  • User can decide whether articles should repeat or not.
  • User can choose how old the articles should be. (0 for today's, 1 for since yesterday, 2 for since day before...)
  • PrettyParser can detect old XML files.
  • XML files are neatly stacked in a local folder.
  • WINDOWS APPLET BIIITTCCHHEEESSSS!

Known Issues

  • The Windows applet quits automatically after fetching sources. Works fine if you run it again.

##TO DO

  • Implement the newspaper module for Python 3.x.
  • Create a Python 2.x implementation.
  • Perhaps use the python-goose module for better speed.

pretty_parser's People

Watchers

 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.