Skip to content

bslgrg00/gbif-image-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

18 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

GBIF Logo GBIF Image Scraper

πŸ“Έ A python script to extract images and metadata from Global Biodiversity Information Facility (GBIF) for any species.


πŸ“Œ Features

βœ… Fetches occurrence records from GBIF using taxonKey.
βœ… Downloads species images and names them based on the catalog number.
βœ… Saves metadata in an Excel file (metadata.xlsx).
βœ… Easy-to-use command-line interface.


πŸ“¦ Requirements

Before running the script, ensure you have the required dependencies installed:

  • requests
  • pandas

βš™οΈ Installation & Usage

  1. Clone this repository:

    git clone https://github.com/bslgrg00/gbif-image-scraper.git
  2. Install required dependencies:

    pip install requests pandas
  3. Find the taxonKey for your species from GBIF.

  4. Run the script with comma-separated taxonKeys:

    python gbif_scrapper.py <taxonKey1>,<taxonKey2>,<taxonKey3>

    Example:

    python gbif_scrapper.py 1234567,9876543,9810246  # Replace with the actual taxonKeys for your species

πŸ“‚ Output

βœ… Images are saved in the images/ directory.
βœ… Metadata is stored in metadata.xlsx.


About

A python script to extract images and metadata for species from GBIF.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages