Skip to main content

Download data from the African Elephant Database

Project description

Download data from the African Elephant Database

The African Elephant Database (http://africanelephantdatabase.org/) is an online effort by the IUCN SSC African Elephant Specialist Group (AfESG) to gather data from different surveys and combine it with past African Elephant Status Reports (published by the same group).

The database is freely accessible online via a web user interface, and released under a Creative Commons Attribution-NonCommercial-ShareAlike license. Unfortunately, at the time of this writing, the AfESG did not have means to access the backend and retrieve raw data.

This script swifts through the online user interface and downloads all data contained in the “Elephant Estimates” columns as well as the spatial geometry of each stratum (the smallest area reported). It retains the hierarchy of spatial units by referencing to the higher-order units in attributes in order to allow the reconstruction of data on the level of input systems, countries, regions and the entire continent.

If you use python-africanelephantdatadownloader for scientific research, please cite it in your publication:
Fink, C. (2019): python-africanelephantdatabasedatadownloader: a Python utility to download the most up-to-date data from the African Elephant Database. doi:10.5281/zenodo.3243872

Dependencies

The script is written in Python 3 and depends on the Python modules BeautifulSoup4, GeoPandas, Shapely and requests.

To install all dependencies on a Debian-based system, run:

apt-get update -y &&
apt-get install -y python3-dev python3-pip python3-virtualenv \
    python3-bs4 python3-geopandas python3-requests python3-shapely

(There’s an Archlinux AUR package pulling in all dependencies, see further down)

Installation

  • using pip or similar:
pip3 install -u africanelephantdatabasedatadownloader
  • OR: manually:

    • Clone this repository
    git clone https://gitlab.com/helics-lab/python-africanelephantdatabasedatadownloader.git
    
    • Change to the cloned directory
    • Use the Python setuptools to install the package:
    cd python-africanelephantdatabasedatadownloader
    python3 ./setup.py install
    
  • OR: (Arch Linux only) from AUR:

# e.g. using yaourt
yaourt python-africanelephantdatabasedatadownloader

Usage

Run aed-downloader [outputFile]. It will download all data (be patient) and save it in GeoPackage format to outputFile (default is output.gpkg in the current working directory).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

File details

Details for the file africanelephantdatabasedatadownloader-0.10.tar.gz.

File metadata

  • Download URL: africanelephantdatabasedatadownloader-0.10.tar.gz
  • Upload date:
  • Size: 36.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.1

File hashes

Hashes for africanelephantdatabasedatadownloader-0.10.tar.gz
Algorithm Hash digest
SHA256 12a179342b9917fb7b2f3a469b410df9e146b58031e77d1d86e275756e766c60
MD5 0807c17d1a922faff3a0cd39c322bd01
BLAKE2b-256 1d63eb59b301f00c0fe2be4bcd560f6556e4d15d5584fe2e2b4fa36fbfb0ab9e

See more details on using hashes here.

File details

Details for the file africanelephantdatabasedatadownloader-0.10-py3-none-any.whl.

File metadata

File hashes

Hashes for africanelephantdatabasedatadownloader-0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 3fb0c18e15c505c12b67cfabd8d8aa1bab0c7950c673318e54465998b1c77877
MD5 564eaaa5f68ce0a1614059e791f76e38
BLAKE2b-256 551d5b8af4ca4a0c003e843a7709ae1b7c977f8dfb01386eaf26d447723945a6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page