transparenciahackday/transparencia-porto — pull request #4 by jorgecarleitao (2014-12-13 14:28:14+00:00)
Title: Cleans code and migrates to Python 3.

These 3 commits are meant to simplify the organisation of the code and migrate it to Python 2+3:

* I've dropped dependency of zenlog and substituted it by logging. `verbose` was not being used in the command, so I used it to make the logger `INFO` print to `stdout`.
* I've tested that running any of the commands `python3 -m depscrap`, `python2 -m depscrap`, `python2.7 -m depscrap.py` run the scraper as it was running before, and that the parsing is consistent for both versions.
* I've also created a package with the scrapper internals. That package only depends on `bs4` and only contains two entry points, `deputies_scraper.get_active_deps` and `deputies_scraper.process_dep`. The module that runs the content of the package is `depscrap.py`.
* I've also broke lines in 80 chars.

This change will allow us migrate the package to its own repository, so we can create test cases for it in a dedicated environment and be able to install it via pip.