python - 使用 Python 的 eBird API
问题描述
请帮助我开始使用 python 的 ebird.api 库。
from ebird.api import list_regions
states = list_regions('subnational1', 'US')
当我运行此代码时,它显示 HTTP 410 Gone Error
请帮帮我
解决方案
这是执行此工作的示例 R 代码。以此为例,并将其转换为 python。
h <- new_handle()
handle_setheaders(h, "X-eBirdApiToken" = "paste your token here")
req <-curl_fetch_memory(paste0("https://ebird.org/ws2.0/product/checklist/view/", Checklist),h)
推荐阅读
- image - 是否可以将 coreml 模型中输入张量的类型从多数组更改为图像?
- spring-security - 不允许直接调用微服务。只允许通过 Zuul API Gateway
- powershell - 为每个文件创建文件夹并将文件移动到文件夹中
- javascript - Html 视频支持不同的视频 src 类型
- git - 每当我提交时,它都会链接到我的另一个 github 帐户的用户名
- selenium - Selenium 测试因最近将 safari 更新到版本 13 而中断?
- spring - Spring 方法级别安全性获取 null 属性 EL1007E:在 null 上找不到属性或字段“价格”
- php - 我想删除重复的``````如果它们是连续的但我的条件“if($value ===”“)”不起作用
- excel - 基于单元格的 VBA 条件格式 .rank 值 - Top10
- webhooks - DialogFlow 文件上传到服务器