Upload WarOnline_Chat_test.py
Browse files- WarOnline_Chat_test.py +2 -3
WarOnline_Chat_test.py
CHANGED
@@ -76,7 +76,6 @@ def post(message=message, thread_url=thread_url, post_url=post_url, quoted_by=""
|
|
76 |
|
77 |
# Extract the _xfToken value from the hidden form field
|
78 |
xf_token = soup.find('input', {'name': '_xfToken'}).get('value')
|
79 |
-
print(xf_token)
|
80 |
|
81 |
# Construct the message data for the POST request
|
82 |
message_data = {
|
@@ -227,9 +226,9 @@ def WarOnlineBot():
|
|
227 |
|
228 |
login(username=username, password=password, thread_url=thread_url)
|
229 |
time.sleep(1)
|
230 |
-
|
231 |
|
232 |
-
time.sleep(
|
233 |
|
234 |
if __name__ == '__main__':
|
235 |
timeout = 2 # min
|
|
|
76 |
|
77 |
# Extract the _xfToken value from the hidden form field
|
78 |
xf_token = soup.find('input', {'name': '_xfToken'}).get('value')
|
|
|
79 |
|
80 |
# Construct the message data for the POST request
|
81 |
message_data = {
|
|
|
226 |
|
227 |
login(username=username, password=password, thread_url=thread_url)
|
228 |
time.sleep(1)
|
229 |
+
post(message=message, thread_url=thread_url, post_url=post_url, quoted_by=msg['messengerName'], quote_text=quote, quote_source=msg['messageID'])
|
230 |
|
231 |
+
time.sleep(5) # Standby time for server load release
|
232 |
|
233 |
if __name__ == '__main__':
|
234 |
timeout = 2 # min
|