回答編集履歴
1
取得してからのフィルタを追加
answer
CHANGED
@@ -8,4 +8,18 @@
|
|
8
8
|
```
|
9
9
|
for status in api.search(q = 'python', lang='ja', geocode="33.590045,130.420611,30km", count=10):
|
10
10
|
print(status.user.name)
|
11
|
+
```
|
12
|
+
|
13
|
+
|
14
|
+
8/22追記:
|
15
|
+
|
16
|
+
|
17
|
+
```
|
18
|
+
for status in api.search(q = 'python' or 'tweepy', lang='ja', count=100):
|
19
|
+
sc_n = status.user.screen_name
|
20
|
+
if '福岡' in status.user.location:
|
21
|
+
u_loc = status.user.location
|
22
|
+
writer = csv.writer(f, lineterminator='\n')
|
23
|
+
writer.writerow([n, '@' + sc_n, u_loc])
|
24
|
+
n += 1
|
11
25
|
```
|