質問編集履歴
1
コードに誤記
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
headers = {'Authorization': f'Bearer {TWITTER_BEARER_TOKEN}'}
|
|
8
8
|
url = f'https://api.twitter.com/2/users/{user_id}/tweets'
|
|
9
9
|
params = {'max_results': 10}
|
|
10
|
-
response = requests.get(
|
|
10
|
+
response = requests.get(url, params=params, headers=headers)
|
|
11
11
|
|
|
12
12
|
len(response.json()['data']) # 10以上取得してしまう
|
|
13
13
|
```
|