-
Notifications
You must be signed in to change notification settings - Fork 6
how to pull from pubdb
Alex Ma edited this page Feb 18, 2021
·
20 revisions
Pulling objects from pubdb requires downloading two files PANDA-Papers-json.pl.json and PANDA-Presentations-json.pl.json, rerun the data process scripts, and then make a pull request against master.
-
clone this repository to a machine that has virtualenv and pip3, e.g. cider
-
git checkout master
to make sure you're in the master branch -
git pull
to get the latest version of master -
git checkout -b pubdb
to make a new branch or use the existing pubdb branch if it is still there -
Download the files and rename them
- https://staff.caida.org/~macat/cgi-bin/publicationsdb/current/editing/PANDA-Papers-json.pl -> data/PANDA-Papers-json.pl.json
- https://staff.caida.org/~macat/cgi-bin/publicationsdb/current/editing/PANDA-Presentations-json.pl -> data/PANDA-Presentations-json.pl.json
-
From the repo root directory, run
make
.# You will need to have bs4 install in python3. You can do this using virtualenv virtualenv env source env/bin/activate pip3 install bs4
# If you haven't activated virtualenv yet # You need only do this once per shell source env/bin/activate make
-
if there aren't any error messages
- commit the two files into the pubdb branch
- push to origin
- create a pull request against master (master <-- pubdb)
- confirm the merge
- delete the pubdb branch