Skip to main content

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).

Metadata

Release files for africanelephantdatabasedatadownloader 0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for africanelephantdatabasedatadownloader 0.10
File Size Uploaded
africanelephantdatabasedatadownloader-0.10.tar.gz 36.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for africanelephantdatabasedatadownloader 0.10
File Interpreter ABI Platform
africanelephantdatabasedatadownloader-0.10-py3-none-any.whl Python 3 none any Details

Total release size: 70.5 kB

Release files / africanelephantdatabasedatadownloader-0.10.tar.gz

Download URL africanelephantdatabasedatadownloader-0.10.tar.gz
Size 36.7 kB
Tags Source
SHA-256 checksum
How to use checksums
12a179342b9917fb7b2f3a469b410df9e146b58031e77d1d86e275756e766c60
BLAKE2b-256 checksum
How to use checksums
1d63eb59b301f00c0fe2be4bcd560f6556e4d15d5584fe2e2b4fa36fbfb0ab9e
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / africanelephantdatabasedatadownloader-0.10-py3-none-any.whl

Download URL africanelephantdatabasedatadownloader-0.10-py3-none-any.whl
Size 33.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3fb0c18e15c505c12b67cfabd8d8aa1bab0c7950c673318e54465998b1c77877
BLAKE2b-256 checksum
How to use checksums
551d5b8af4ca4a0c003e843a7709ae1b7c977f8dfb01386eaf26d447723945a6
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.10 This release

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page