πΈ A python script to extract images and metadata from Global Biodiversity Information Facility (GBIF) for any species.
β
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.
Before running the script, ensure you have the required dependencies installed:
requests
pandas
-
Clone this repository:
git clone https://github.com/bslgrg00/gbif-image-scraper.git
-
Install required dependencies:
pip install requests pandas
-
Find the
taxonKey
for your species from GBIF. -
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
β
Images are saved in the images/
directory.
β
Metadata is stored in metadata.xlsx
.