What You'll Need
First:
- brew
- python
- pip
Then:
- virtualenv
- virtualenwrapper
- imagemagick
- dcraw
Also:
- EditThisCookie Chrome extension
- A UVaBox account
If you're completely new to using python or the command line, these instructions assume you're working on MacOS.
1. Create a password for your UVaBox account
Final result: A password
This will let the importer access your account. It can't do this if you're exclusively using NetBadge.
- Log in at https://virginia.app.box.com
- Click on your initials in the top right corner, then choose Account Settings
- Create your new password in the Authentication section
Keep this password somewhere safe. You'll need it when you start the import.
2. Use EditThisCookie to get the key you need to access Mandala Images
Final result: A KEY and VALUE
- Using Chrome, log in to https://images.shanti.virginia.edu
- On the Images page, open Chrome developer tools (View > Developer > Developer Tools)
The developer tools will open at the bottom of the page
- Open the EditThisCookie tab in the developer tool
- Look for a row where:
- The name that starts SESS, and
- The 'Secure' column is checked off
- Copy and paste the first two cells of the row
- The first cell (SESSXXXXXXXXXXXXXXXXX) is your KEY
- The second cell (a string of random digits) is your VALUE
Keep your KEY and VALUE somewhere safe. You'll need them when you start the import.
3. Set up your package installers and python
Final result: python, pip, and brew installed on your computer
These instructions assume you've never worked with the MacOS Terminal app, or any Unix-based system, or any command line interface.
Terminal is a command line interface for your Mac. Instead of clicking on buttons to accomplish what you need, you'll send small snippits of texts instructions to your computer. You'll need to learn the basics of using this interface to run the importer. (Don't worry, if you just copy and paste commands from this document, you should probably be fine...)
Open Terminal
- Open your applications
- Open the Utilities folder, then click Terminal
You should see the terminal now. It will look something like this:
Last login: Wed Feb 6 08:11:10 on ttys000 Veronicas-MacBook-Pro:~ veronicakuhn$
Install Homebrew
Copy and paste the following code into the terminal, then press Return.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
The terminal may ask you to hit Return again to confirm the installation, then will request your Mac password. Enter it, then hit Return one last time.
Install Python
Copy and paste the following code into the terminal, then press Return.
brew install python
(You can do this because you installed homebrew in the previous step. Woohoo.)
Install Pip
The command to install python should have already installed pip, but let's make sure. Copy and paste the following code into the terminal, then press Return.
pip --version
You should see the version of pip that's been installed.
4. Install other stuff you need
Virtualenv
Run the following :
pip install virtualenv
virtualenwrapper
Run the following:
pip install virtualenvwrapper
imagemagick
Run the following:
brew install imagemagick
dcraw
Run the following:
brew install dcraw