Scrapers for pages on the eBird web site
Project description
eBird Pages
Although eBird has an API, not all the information from the database is available. The API, for example, does not return links to any uploaded photos; comments on an individual observation are also missing. eBird Pages is a set of scrapers for extracting data from various pages on the eBird web site. It complements the API, giving access to all the data that eBird makes publicly available.
Install
pip install ebird-pages
Usage
Scraping the data from a page is as simple as a function call. For example to get all the data from a checklist use get_checklist() and pass in the unique identifier generated when the checklist was submitted to the eBird database:
from ebird.pages import get_checklist
data = get_checklist('S38429565')
The function returns a dict with keys for the location, date, observers, etc.
You can also get the complete list of checklists from the "Recent Checklists" page, e.g. https://ebird.org/region/US-MA/recent-checklists. From there you can download each checklist:
import time
from ebird.pages import get_checklist, get_recent_checklists
for item in get_recent_checklists("US-MA"):
checklist = get_checklist(item["identifier"])
# Be nice and don't hit the servers as fast as possible
time.sleep(10)
Compatibility
ebird-pages works with all currently supported versions of Python (3.8+).
License
eBird Pages is available under the terms of the MIT license.
Project details
Release history Release notifications | RSS feed
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 ebird_pages-0.2.0.tar.gz
.
File metadata
- Download URL: ebird_pages-0.2.0.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.25
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9d9e713b4ea8ef4ceb86febdc69f38f1fd9791017634feb2385334131d28c2a |
|
MD5 | 2b00a3f27c9fe9665431c24198d95870 |
|
BLAKE2b-256 | be9c40b26f9077378c6b118d324f9092f67857c8ad328d044f6ca4f96fc27291 |
File details
Details for the file ebird_pages-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: ebird_pages-0.2.0-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.25
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5ae11d3d91e29c0ad0906130ebe1e740d9fd20010632808ac492fae3d8532d7 |
|
MD5 | 44bae8046f0233517ea82832412cd6a9 |
|
BLAKE2b-256 | ae58db6c721d4c2b5e7c894954608f37375235e57dc2849da59d6fdd55eb3b92 |