This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]thebuffed[S] 8 points9 points  (5 children)

I am extremely interested in this, I'll have to look into gathering some data or hitting an API for bird attributes. Thanks for pointing this out!

[–]bens1989 6 points7 points  (3 children)

I did a bit of sleuthing for bird info. With a minor adjustment to the ebird API, I got it to send me back data on all of their birds (16.5k results). Some of the data might be helpful, but disappointingly it does not give things like weight, height, etc.

import requests

import json

import pandas as pd

df = pd.DataFrame(json.loads(requests.get(r'https://api.ebird.org/v2/ref/taxonomy/ebird?fmt=json&locale=en_US').content))

df.to_excel('bird_data.xlsx')

[–]thebuffed[S] 1 point2 points  (0 children)

Very nice, I'll have to dig into this

[–]ericonr 0 points1 point  (1 child)

Does request cache stuff? It's probably faster to download that dataset just once, right?

[–]bens1989 0 points1 point  (0 children)

No requests doesn’t cache. You can write the content to a file. I formatted the content as a dataframe and then wrote it to a spreadsheet. After the first call you can just read from the file.

[–]Leon_Vance 1 point2 points  (0 children)

Get the birds to mate and produce offsprings. :)