我目前正在尝试从Jupyter Labs的Eventbrite API平台中提取数据。发出请求时,有时会收到406不可接受的错误。但是,总是会在几分钟后再次发出相同的请求,则该请求会将数据拉细。
我检查了通常的情况:即,我没有超出请求限制。
这是我当前正在发出的请求:
url = 'https://www.eventbriteapi.com/v3/events/search/?token=MY_TOKEN_HERE&location.latitude=42.34631505453378&location.longitude=-71.04174243961083&location.within=3km&start_date.range_start=2019-10-30T00:00:00Z&start_date.range_end=2019-11-30T00:00:00Z&expand=venue'
x = requests.get(url)
x
Run Code Online (Sandbox Code Playgroud)
以及响应:
<Response [406]>
Run Code Online (Sandbox Code Playgroud)
对问题可能有什么想法?