Web scraper for BearBuy orders at UCSF
- Needs Python 3, pip
-
Download bearbuy_scrape.py - put it in its own folder
-
Make a virtual environment for this script.
python3 -m venv ./../bearBuy_env
source ../bearBuy_env/bin/activate
-
Download requirements.txt
-
Run
pip install -r requirements.txt
-
When you load a requisition, save the Summary page as an HTML file in the same dir as bearbuy_scrape.py
-
Run
python bearbuy_scrape.py
-
Copy and paste allRequisitions.tsv into your favorite spreadsheet
- Documents>Search Documents>My Requisitions
- Click on the requisition no. link
- On the Summary tab page, Hit Ctrl-S, save webpage as HTML in same dir as bearbuy_scrape.py
- Run
python bearbuy_scrape.py
- Output should have populated a allRequisitions.tsv file