質問編集履歴

3

文章追加

2018/03/25 08:31

投稿

MAXGAMS
MAXGAMS

スコア7

test CHANGED
File without changes
test CHANGED
@@ -6,7 +6,9 @@
6
6
 
7
7
  10分間に一回英単語をtweetするソフトを作成したいです。
8
8
 
9
- しかし、上手くいきません
9
+ 起動すれば一回目のツイートはできま
10
+
11
+ しかし、whileで数分毎にtweetしようとするとエラーが発生します。
10
12
 
11
13
  どうすれば良いですか?
12
14
 

2

エラーの変更

2018/03/25 08:31

投稿

MAXGAMS
MAXGAMS

スコア7

test CHANGED
File without changes
test CHANGED
@@ -18,7 +18,29 @@
18
18
 
19
19
  ```
20
20
 
21
+ Traceback (most recent call last):
22
+
23
+ File "loop.py", line 47, in <module>
24
+
25
+ main()
26
+
27
+ File "loop.py", line 36, in main
28
+
29
+ makeApi().update_status(random.choice(STATUS_DATA))
30
+
31
+ File "C:\Users\root\AppData\Local\Programs\Python\Python36-32\lib\site-packages\tweepy\api.py", line 194, in update_status
32
+
33
+ )(post_data=post_data, *args, **kwargs)
34
+
35
+ File "C:\Users\root\AppData\Local\Programs\Python\Python36-32\lib\site-packages\tweepy\binder.py", line 250, in _call
36
+
37
+ return method.execute()
38
+
39
+ File "C:\Users\root\AppData\Local\Programs\Python\Python36-32\lib\site-packages\tweepy\binder.py", line 234, in execute
40
+
21
- IndentationError: unindent does not match any outer indentation level
41
+ raise TweepError(error_msg, resp, api_code=api_error_code)
42
+
43
+ tweepy.error.TweepError: [{'code': 187, 'message': 'Status is a duplicate.'}]
22
44
 
23
45
  ```
24
46
 
@@ -112,9 +134,9 @@
112
134
 
113
135
  while True:
114
136
 
115
- main()
137
+ main()
116
138
 
117
- print('1')
139
+ print('1')
118
140
 
119
141
  time.sleep(10)
120
142
 

1

コード

2018/03/25 08:04

投稿

MAXGAMS
MAXGAMS

スコア7

test CHANGED
File without changes
test CHANGED
@@ -27,6 +27,8 @@
27
27
  #コード
28
28
 
29
29
 
30
+
31
+ ```Python
30
32
 
31
33
  import tweepy
32
34
 
@@ -115,3 +117,7 @@
115
117
  print('1')
116
118
 
117
119
  time.sleep(10)
120
+
121
+ ```
122
+
123
+ ```