Something went wrong. Try again.
A Bluesky bot for posting a Bird Of The Day
Something went wrong. Try again.
Files
- Rust 100%
README.md
Bird Of The Day #
A Bluesky bot. This is the code used to generate a bird of the day for the Bluesky account: @birdofthedaybot.
All bird information comes from eBird.org.
How it works #
- A local copy of the eBird bird database is retrieved through their API.
- The bird database, in addition to specific birds, also contains individual bird species (e.g., Apteryx sp.). Additionally, the database contains extinct birds (e.g., Dodo). Neither of these are desirable for posting, so they are filtered before posting.
- After filtering out species and extinct birds, a random bird is selected from the remaining birds.
- The selected bird is then obtained from eBird.org which allows downloading the characteristic bird image.
- Finally, after obtaining a random bird and its picture, the Bluesky API, is used to upload the image and make the final post.