Commit 4875bc0d authored by lixiaofang's avatar lixiaofang

a

parent 11a2ac83
......@@ -44,7 +44,7 @@
<entry key="comment" value="59" />
<entry key="dummy" value="7" />
<entry key="guanshui" value="2" />
<entry key="py" value="7809" />
<entry key="py" value="7817" />
<entry key="txt" value="86" />
<entry key="xuqiu" value="223" />
</counts>
......@@ -52,7 +52,7 @@
<usages-collector id="statistics.file.types.edit">
<counts>
<entry key="PLAIN_TEXT" value="377" />
<entry key="Python" value="7809" />
<entry key="Python" value="7817" />
</counts>
</usages-collector>
</session>
......@@ -123,11 +123,11 @@
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/auto_click1.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="358">
<caret line="58" column="42" selection-start-line="58" selection-start-column="42" selection-end-line="58" selection-end-column="42" />
<state relative-caret-position="323">
<caret line="42" column="8" selection-start-line="42" selection-start-column="8" selection-end-line="42" selection-end-column="8" />
<folding>
<element signature="e#0#11#0" expanded="true" />
<marker date="1556242302000" expanded="true" signature="1325:1514" ph="..." />
<marker date="1556242540000" expanded="true" signature="1254:1443" ph="..." />
</folding>
</state>
</provider>
......@@ -160,8 +160,8 @@
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/auto_comment1.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="87">
<caret line="59" column="40" selection-start-line="59" selection-start-column="40" selection-end-line="59" selection-end-column="40" />
<state relative-caret-position="282">
<caret line="61" selection-start-line="61" selection-end-line="61" />
<folding>
<element signature="e#0#11#0" expanded="true" />
</folding>
......@@ -172,7 +172,7 @@
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/auto_comment2.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="482">
<state relative-caret-position="825">
<caret line="55" column="36" lean-forward="true" selection-start-line="55" selection-start-column="36" selection-end-line="55" selection-end-column="36" />
<folding>
<element signature="e#0#11#0" expanded="true" />
......@@ -184,8 +184,8 @@
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/auto_comment3.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="268">
<caret line="41" column="35" lean-forward="true" selection-start-line="41" selection-start-column="35" selection-end-line="41" selection-end-column="35" />
<state relative-caret-position="270">
<caret line="18" column="23" selection-start-line="18" selection-start-column="23" selection-end-line="18" selection-end-column="23" />
<folding>
<element signature="e#0#11#0" expanded="true" />
</folding>
......@@ -301,8 +301,8 @@
<option value="$PROJECT_DIR$/auto_click2.py" />
<option value="$PROJECT_DIR$/auto_click3.py" />
<option value="$PROJECT_DIR$/auto_comment2.py" />
<option value="$PROJECT_DIR$/auto_comment3.py" />
<option value="$PROJECT_DIR$/auto_click1.py" />
<option value="$PROJECT_DIR$/auto_comment3.py" />
<option value="$PROJECT_DIR$/auto_comment1.py" />
</list>
</option>
......@@ -534,7 +534,7 @@
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
<window_info anchor="bottom" id="TODO" order="6" />
<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.7536946" />
<window_info active="true" anchor="bottom" id="Terminal" order="8" visible="true" weight="0.20032841" />
<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="DB Execution Console" order="11" />
......@@ -834,41 +834,41 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/auto_comment2.py">
<entry file="file://$PROJECT_DIR$/auto_click1.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="482">
<caret line="55" column="36" lean-forward="true" selection-start-line="55" selection-start-column="36" selection-end-line="55" selection-end-column="36" />
<state relative-caret-position="323">
<caret line="42" column="8" selection-start-line="42" selection-start-column="8" selection-end-line="42" selection-end-column="8" />
<folding>
<element signature="e#0#11#0" expanded="true" />
<marker date="1556242540000" expanded="true" signature="1254:1443" ph="..." />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/auto_comment3.py">
<entry file="file://$PROJECT_DIR$/auto_comment2.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="268">
<caret line="41" column="35" lean-forward="true" selection-start-line="41" selection-start-column="35" selection-end-line="41" selection-end-column="35" />
<state relative-caret-position="825">
<caret line="55" column="36" lean-forward="true" selection-start-line="55" selection-start-column="36" selection-end-line="55" selection-end-column="36" />
<folding>
<element signature="e#0#11#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/auto_click1.py">
<entry file="file://$PROJECT_DIR$/auto_comment3.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="358">
<caret line="58" column="42" selection-start-line="58" selection-start-column="42" selection-end-line="58" selection-end-column="42" />
<state relative-caret-position="270">
<caret line="18" column="23" selection-start-line="18" selection-start-column="23" selection-end-line="18" selection-end-column="23" />
<folding>
<element signature="e#0#11#0" expanded="true" />
<marker date="1556242302000" expanded="true" signature="1325:1514" ph="..." />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/auto_comment1.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="87">
<caret line="59" column="40" selection-start-line="59" selection-start-column="40" selection-end-line="59" selection-end-column="40" />
<state relative-caret-position="282">
<caret line="61" selection-start-line="61" selection-end-line="61" />
<folding>
<element signature="e#0#11#0" expanded="true" />
</folding>
......
......@@ -52,40 +52,32 @@ def write_id_file(id):
if __name__ == "__main__":
try:
data1 = open("save_topic_id.txt", "w")
data1.truncate()
numtime, numtime2 = time_conv(20,10)
user_id = get_data(numtime, numtime)
dicts = {}
if user_id:
for i in user_id and user_id:
if i[0] not in dicts.keys():
dicts.setdefault(i[0], [])
dicts[i[0]].append(i[1])
else:
dicts[i[0]].append(i[1])
for i in user_id:
if i[0] not in dicts.keys():
dicts.setdefault(i[0], [])
dicts[i[0]].append(i[1])
else:
dicts[i[0]].append(i[1])
for key, value in dicts.items():
for key, value in dicts.items():
rand_num = random.randint(0, len(value) - 1)
rand_num = random.randint(0, len(value) - 1)
rand_id = value[rand_num]
rand_id = value[rand_num]
time.sleep(random.randint(1, 10))
time.sleep(random.randint(1, 10))
cook = login()
if cook is not None:
write_id_file(rand_id)
click(cook, rand_id)
else:
pass
cook = login()
if cook is not None:
write_id_file(rand_id)
click(cook, rand_id)
except:
logging.error("catch exception,main:%s" % traceback.format_exc())
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