ranveeraggarwal / iitb-blog-aggregator

A blog aggregator for IIT Bombay using RAWDOG

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IIT Bombay's Blog Aggregator

Rawdog's documentation: http://offog.org/code/rawdog/

Installation

Follow these steps. Here, <home> refers to the iitb-blog-aggregator directory.

  • Make a virtual environment with Python2 (Learn how to do so here).

  • Install feedparser

      pip install feedparser
    
  • Install psycopg2

      pip install psycopg2
    
  • Go to <home>/configurations/ and do

      cp config.example config
    
  • In the config file, add path to your

    • iitb-blog-aggregator directory at three places (replace <path to github folder> aptly by Ctrl + F-ing).

Installation for Database

  • Install PostgreSQL 9.5 if you haven't installed before. (Get it from here)

  • Go to <home>/configurations/ and do

      cp config_db.py.example config_db.py
    
  • Open <home>/configurations/config_db.py and set

    • DB_USER and DB_PASS to the username and password of the role respectively. (Make sure that the role has CREATEDB permission)

    • DB_NAME to the name of the database for connecting the first time.

  • Go to <home>/configurations/ and execute

      python setup_db.py
    

Running

  • Go to <home>/rawdog and run

      ./rawdog
    
  • If the above works, run the following

    ./rawdog -u ./rawdog -w

Your feed would be added/updated in the database. If it doesn't work, post on the gitter chat.

About

A blog aggregator for IIT Bombay using RAWDOG

License:MIT License


Languages

Language:Python 54.6%Language:Shell 30.9%Language:HTML 10.3%Language:Groff 3.1%Language:CSS 1.0%