Skip to content
This repository
tree: 3960b1688d
Fetching contributors…

Cannot retrieve contributors at this time

file 32 lines (19 sloc) 1.106 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
# clone/fork this reopository: https://github.com/pudo/parltrack/

 git clone git@github.com:pudo/parltrack.git
 cd parltrack

# install non-pythonic dependencies dependencies

 apt-get install wv poppler-utils mongodb-server mongodb-clients ksh bzip2 python-dev libxml2-dev libxslt-dev

# create a virtual environment

 virtualenv --no-site-packages env

# activate the environment

source env/bin/activate

# install python requirements

 pip -E env install -r pip-requirements.txt

# setup parltrack pkg

 sudo python setup.py develop

# download the official dumps

curl http://parltrack.euwiki.org/dumps/ep_comagendas.json.xz | xz -dc | mongoimport -d parltrack -c ep_comagendas
curl http://parltrack.euwiki.org/dumps/ep_dossiers.json.xz | xz -dc | mongoimport -d parltrack -c dossiers
curl http://parltrack.euwiki.org/dumps/ep_meps_current.json.xz | xz -dc | mongoimport -d parltrack -c ep_meps2
curl http://parltrack.euwiki.org/dumps/ep_votes.json.xz | xz -dc | mongoimport -d parltrack -c ep_votes
curl http://parltrack.euwiki.org/dumps/eurlex.json.xz | xz -dc | mongoimport -d parltrack -c eurlex
Something went wrong with that request. Please try again.