回答編集履歴
1
取得してからのフィルタを追加
test
CHANGED
@@ -19,3 +19,31 @@
|
|
19
19
|
print(status.user.name)
|
20
20
|
|
21
21
|
```
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
8/22追記:
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
```
|
34
|
+
|
35
|
+
for status in api.search(q = 'python' or 'tweepy', lang='ja', count=100):
|
36
|
+
|
37
|
+
sc_n = status.user.screen_name
|
38
|
+
|
39
|
+
if '福岡' in status.user.location:
|
40
|
+
|
41
|
+
u_loc = status.user.location
|
42
|
+
|
43
|
+
writer = csv.writer(f, lineterminator='\n')
|
44
|
+
|
45
|
+
writer.writerow([n, '@' + sc_n, u_loc])
|
46
|
+
|
47
|
+
n += 1
|
48
|
+
|
49
|
+
```
|