Commit fd6e40fb authored by lixiaofang's avatar lixiaofang

add

parent 79aabcc5
...@@ -42,14 +42,14 @@ ...@@ -42,14 +42,14 @@
<entry key="comment" value="59" /> <entry key="comment" value="59" />
<entry key="dummy" value="6" /> <entry key="dummy" value="6" />
<entry key="guanshui" value="2" /> <entry key="guanshui" value="2" />
<entry key="py" value="3191" /> <entry key="py" value="3285" />
<entry key="xuqiu" value="223" /> <entry key="xuqiu" value="223" />
</counts> </counts>
</usages-collector> </usages-collector>
<usages-collector id="statistics.file.types.edit"> <usages-collector id="statistics.file.types.edit">
<counts> <counts>
<entry key="PLAIN_TEXT" value="290" /> <entry key="PLAIN_TEXT" value="290" />
<entry key="Python" value="3191" /> <entry key="Python" value="3285" />
</counts> </counts>
</usages-collector> </usages-collector>
</session> </session>
...@@ -132,8 +132,8 @@ ...@@ -132,8 +132,8 @@
<file pinned="false" current-in-tab="true"> <file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/instant.py"> <entry file="file://$PROJECT_DIR$/instant.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="570"> <state relative-caret-position="540">
<caret line="38" column="36" selection-start-line="38" selection-start-column="36" selection-end-line="38" selection-end-column="36" /> <caret line="36" column="16" selection-start-line="36" selection-start-column="16" selection-end-line="36" selection-end-column="16" />
<folding> <folding>
<element signature="e#0#15#0" expanded="true" /> <element signature="e#0#15#0" expanded="true" />
</folding> </folding>
...@@ -516,7 +516,7 @@ ...@@ -516,7 +516,7 @@
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" /> <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
<window_info anchor="bottom" id="TODO" order="6" /> <window_info anchor="bottom" id="TODO" order="6" />
<window_info anchor="bottom" id="Version Control" order="7" show_stripe_button="false" /> <window_info anchor="bottom" id="Version Control" order="7" show_stripe_button="false" />
<window_info active="true" anchor="bottom" id="Terminal" order="8" visible="true" weight="0.25906736" /> <window_info active="true" anchor="bottom" id="Terminal" order="8" visible="true" weight="0.015544041" />
<window_info anchor="bottom" id="Event Log" order="9" side_tool="true" /> <window_info anchor="bottom" id="Event Log" order="9" side_tool="true" />
<window_info anchor="bottom" id="Python Console" order="10" /> <window_info anchor="bottom" id="Python Console" order="10" />
<window_info anchor="bottom" id="DB Execution Console" order="11" /> <window_info anchor="bottom" id="DB Execution Console" order="11" />
...@@ -935,8 +935,8 @@ ...@@ -935,8 +935,8 @@
</entry> </entry>
<entry file="file://$PROJECT_DIR$/instant.py"> <entry file="file://$PROJECT_DIR$/instant.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="570"> <state relative-caret-position="540">
<caret line="38" column="36" selection-start-line="38" selection-start-column="36" selection-end-line="38" selection-end-column="36" /> <caret line="36" column="16" selection-start-line="36" selection-start-column="16" selection-end-line="36" selection-end-column="16" />
<folding> <folding>
<element signature="e#0#15#0" expanded="true" /> <element signature="e#0#15#0" expanded="true" />
</folding> </folding>
......
...@@ -32,14 +32,34 @@ if __name__ == "__main__": ...@@ -32,14 +32,34 @@ if __name__ == "__main__":
def fun_timer(): def fun_timer():
cookies = login() cookies = login()
if cookies: if cookies:
click(cookies,topic_id_list) click(cookies, topic_id_list)
global timer global timer
timer = threading.Timer(60, fun_timer) exec_count =1
timer.start() if exec_count == 1:
# sleep_time = random.randint(300, 540)
sleep_time = 3
timer = threading.Timer(sleep_time, fun_timer)
timer.start()
exec_count+=1
timer = threading.Timer(70, fun_timer) if exec_count == 2:
timer.start()
timer = threading.Timer(10, fun_timer) # 首次启动 # sleep_time = random.randint(1000, 1900)
sleep_time = 10
timer = threading.Timer(sleep_time, fun_timer)
timer.start()
exec_count += 1
if exec_count == 3:
# sleep_time = random.randint(2000, 3000)
sleep_time = 15
timer = threading.Timer(sleep_time, fun_timer)
timer.start()
exec_count += 1
timer = threading.Timer(1, fun_timer) # 首次启动
timer.start() timer.start()
except: except:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment