Utility used to download astronomy images from NASA's Astronomy Picture of the Day Archive.
Prmary data is queried from http://apod.nasa.gov/apod/archivepix.html.
Secondary data is queried from each archive page using Jsoup and string manipulation.
Uses the jsoup-1.8.3 library (view license agreement).
Uses the sqlite-jdbc-3.8.11.1 library.
How to run this project with Eclipse (Windows, Mac OS X, and Linux):
If the EGit plug-in is already installed go to step 3.
- Open Eclipse
- Install EGit from the Eclipse Marketplace (Help => Eclipse Marketplace...)
- Right click inside Package Explorer (Window => Package Explorer) and choose "Import..."
- Expand the "Git" folder and choose "Projects from Git"
- Choose "Clone URI" and enter the git repository HTTPS address https://github.com/droidjst/AstronomyDownloader.git
- Some of the form fields will automatically populate with the URL information
- Enter your GitHub username and password if you're going to be contributing to the project, otherwise you can leave it blank
- Choose "Next"
- Add a tick mark to the "master" branch
- Choose "Next"
- Enter a location to store the remote copy, preferably the /git folder found in the user directory
- Keep the initial branch set to "master"
- The remote name can be anything, although it's traditionally titled "origin"
- Choose "Finish"
Troubleshooting:
If there is an error with the Referenced Libraries folder make sure the Project Build Paths (Right click the project in Project Explorer => Build Path => Configure Build Path...) have both the jsoup and sqlite-jdbc jar files referenced, with tick marks under the "Order and Export" section. For all other inquiries send me an email droidjst@gmail.com.
How to run this project via the command line (Windows, Mac OS X, and Linux):
The Java 1.7 JDK (or above) must be installed on the computer and the /bin folder must listed in the System Environment Variables (run "java -version" in Command Prompt).
Since this project was developed in Eclipse there is a package structure which is difficult to work with on the command line. A batch file (for Windows) and bash script (for Mac OS X and Linux) will be provided in a future update.
For more information on compiling via the command line, see the following link: http://docs.oracle.com/javase/7/docs/technotes/tools/windows/javac.html
Copyright 2015 Joseph Tranquillo droidjst@gmail.com