Commit aacc9f67 authored by lixiaofang's avatar lixiaofang

a

parent 69bf0a64
...@@ -2,7 +2,11 @@ ...@@ -2,7 +2,11 @@
<project version="4"> <project version="4">
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="fd1f0b61-1139-44e5-87e7-f8b86ff52376" name="Default Changelist" comment=""> <list default="true" id="fd1f0b61-1139-44e5-87e7-f8b86ff52376" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/auto_click2.py" beforeDir="false" afterPath="$PROJECT_DIR$/auto_click2.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/auto_click3.py" beforeDir="false" afterPath="$PROJECT_DIR$/auto_click3.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/auto_comment1.py" beforeDir="false" afterPath="$PROJECT_DIR$/auto_comment1.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/auto_comment2.py" beforeDir="false" afterPath="$PROJECT_DIR$/auto_comment2.py" afterDir="false" /> <change beforePath="$PROJECT_DIR$/auto_comment2.py" beforeDir="false" afterPath="$PROJECT_DIR$/auto_comment2.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/auto_comment3.py" beforeDir="false" afterPath="$PROJECT_DIR$/auto_comment3.py" afterDir="false" />
</list> </list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
...@@ -43,7 +47,7 @@ ...@@ -43,7 +47,7 @@
<entry key="comment" value="59" /> <entry key="comment" value="59" />
<entry key="dummy" value="7" /> <entry key="dummy" value="7" />
<entry key="guanshui" value="2" /> <entry key="guanshui" value="2" />
<entry key="py" value="7671" /> <entry key="py" value="7798" />
<entry key="txt" value="86" /> <entry key="txt" value="86" />
<entry key="xuqiu" value="223" /> <entry key="xuqiu" value="223" />
</counts> </counts>
...@@ -51,7 +55,7 @@ ...@@ -51,7 +55,7 @@
<usages-collector id="statistics.file.types.edit"> <usages-collector id="statistics.file.types.edit">
<counts> <counts>
<entry key="PLAIN_TEXT" value="377" /> <entry key="PLAIN_TEXT" value="377" />
<entry key="Python" value="7671" /> <entry key="Python" value="7798" />
</counts> </counts>
</usages-collector> </usages-collector>
</session> </session>
...@@ -122,7 +126,7 @@ ...@@ -122,7 +126,7 @@
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/auto_click1.py"> <entry file="file://$PROJECT_DIR$/auto_click1.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="225"> <state relative-caret-position="-477">
<caret line="15" column="108" selection-start-line="15" selection-start-column="90" selection-end-line="15" selection-end-column="108" /> <caret line="15" column="108" selection-start-line="15" selection-start-column="90" selection-end-line="15" selection-end-column="108" />
<folding> <folding>
<element signature="e#0#11#0" expanded="true" /> <element signature="e#0#11#0" expanded="true" />
...@@ -135,8 +139,8 @@ ...@@ -135,8 +139,8 @@
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/auto_click2.py"> <entry file="file://$PROJECT_DIR$/auto_click2.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="165"> <state relative-caret-position="299">
<caret line="11" lean-forward="true" selection-start-line="11" selection-end-line="11" /> <caret line="47" lean-forward="true" selection-start-line="47" selection-end-line="47" />
<folding> <folding>
<element signature="e#0#11#0" expanded="true" /> <element signature="e#0#11#0" expanded="true" />
</folding> </folding>
...@@ -147,8 +151,8 @@ ...@@ -147,8 +151,8 @@
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/auto_click3.py"> <entry file="file://$PROJECT_DIR$/auto_click3.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="510"> <state relative-caret-position="227">
<caret line="34" lean-forward="true" selection-start-line="34" selection-end-line="34" /> <caret line="39" column="26" lean-forward="true" selection-start-line="39" selection-start-column="26" selection-end-line="39" selection-end-column="26" />
<folding> <folding>
<element signature="e#0#11#0" expanded="true" /> <element signature="e#0#11#0" expanded="true" />
</folding> </folding>
...@@ -159,8 +163,8 @@ ...@@ -159,8 +163,8 @@
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/auto_comment1.py"> <entry file="file://$PROJECT_DIR$/auto_comment1.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="695"> <state relative-caret-position="148">
<caret line="51" lean-forward="true" selection-start-line="51" selection-end-line="51" /> <caret line="72" column="44" selection-start-line="72" selection-start-column="44" selection-end-line="72" selection-end-column="44" />
<folding> <folding>
<element signature="e#0#11#0" expanded="true" /> <element signature="e#0#11#0" expanded="true" />
</folding> </folding>
...@@ -169,22 +173,10 @@ ...@@ -169,22 +173,10 @@
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/auto_commnet.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="394">
<caret line="75" column="39" lean-forward="true" selection-start-line="75" selection-start-column="16" selection-end-line="75" selection-end-column="39" />
<folding>
<element signature="e#0#15#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/auto_comment2.py"> <entry file="file://$PROJECT_DIR$/auto_comment2.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="243"> <state relative-caret-position="482">
<caret line="37" column="12" selection-start-line="37" selection-start-column="12" selection-end-line="37" selection-end-column="12" /> <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> <folding>
<element signature="e#0#11#0" expanded="true" /> <element signature="e#0#11#0" expanded="true" />
</folding> </folding>
...@@ -192,11 +184,11 @@ ...@@ -192,11 +184,11 @@
</provider> </provider>
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/auto_comment3.py"> <entry file="file://$PROJECT_DIR$/auto_comment3.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-16"> <state relative-caret-position="268">
<caret line="10" column="8" lean-forward="true" selection-start-line="10" selection-start-column="8" selection-end-line="10" selection-end-column="8" /> <caret line="41" column="35" lean-forward="true" selection-start-line="41" selection-start-column="35" selection-end-line="41" selection-end-column="35" />
<folding> <folding>
<element signature="e#0#11#0" expanded="true" /> <element signature="e#0#11#0" expanded="true" />
</folding> </folding>
...@@ -307,14 +299,14 @@ ...@@ -307,14 +299,14 @@
<option value="$PROJECT_DIR$/testss.py" /> <option value="$PROJECT_DIR$/testss.py" />
<option value="$PROJECT_DIR$/test.py" /> <option value="$PROJECT_DIR$/test.py" />
<option value="$PROJECT_DIR$/auto_click.py" /> <option value="$PROJECT_DIR$/auto_click.py" />
<option value="$PROJECT_DIR$/auto_click3.py" />
<option value="$PROJECT_DIR$/save_topic_id_comment_three.txt" /> <option value="$PROJECT_DIR$/save_topic_id_comment_three.txt" />
<option value="$PROJECT_DIR$/auto_comment3.py" />
<option value="$PROJECT_DIR$/auto_click2.py" />
<option value="$PROJECT_DIR$/auto_request.py" /> <option value="$PROJECT_DIR$/auto_request.py" />
<option value="$PROJECT_DIR$/auto_click1.py" /> <option value="$PROJECT_DIR$/auto_click1.py" />
<option value="$PROJECT_DIR$/auto_click2.py" />
<option value="$PROJECT_DIR$/auto_click3.py" />
<option value="$PROJECT_DIR$/auto_comment1.py" /> <option value="$PROJECT_DIR$/auto_comment1.py" />
<option value="$PROJECT_DIR$/auto_comment2.py" /> <option value="$PROJECT_DIR$/auto_comment2.py" />
<option value="$PROJECT_DIR$/auto_comment3.py" />
</list> </list>
</option> </option>
</component> </component>
...@@ -532,7 +524,6 @@ ...@@ -532,7 +524,6 @@
</component> </component>
<component name="ToolWindowManager"> <component name="ToolWindowManager">
<frame x="0" y="23" width="1280" height="724" extended-state="0" /> <frame x="0" y="23" width="1280" height="724" extended-state="0" />
<editor active="true" />
<layout> <layout>
<window_info id="Structure" order="0" sideWeight="0.21188119" side_tool="true" weight="0.19112115" /> <window_info id="Structure" order="0" sideWeight="0.21188119" side_tool="true" weight="0.19112115" />
<window_info id="Favorites" order="1" side_tool="true" /> <window_info id="Favorites" order="1" side_tool="true" />
...@@ -546,7 +537,7 @@ ...@@ -546,7 +537,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.136289" /> <window_info active="true" anchor="bottom" id="Terminal" order="8" visible="true" weight="0.46469623" />
<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" />
...@@ -792,16 +783,6 @@ ...@@ -792,16 +783,6 @@
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/auto_click3.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="510">
<caret line="34" lean-forward="true" selection-start-line="34" selection-end-line="34" />
<folding>
<element signature="e#0#11#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/save_topic_id_comment_three.txt"> <entry file="file://$PROJECT_DIR$/save_topic_id_comment_three.txt">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="45"> <state relative-caret-position="45">
...@@ -816,71 +797,81 @@ ...@@ -816,71 +797,81 @@
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/auto_commnet.py"> <entry file="file://$PROJECT_DIR$/auto_request.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="394"> <state relative-caret-position="194">
<caret line="75" column="39" lean-forward="true" selection-start-line="75" selection-start-column="16" selection-end-line="75" selection-end-column="39" /> <caret line="147" column="32" selection-start-line="147" selection-start-column="32" selection-end-line="147" selection-end-column="32" />
<folding> <folding>
<element signature="e#0#15#0" expanded="true" /> <element signature="e#0#15#0" expanded="true" />
</folding> </folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/auto_click2.py"> <entry file="file://$PROJECT_DIR$/auto_click1.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="165"> <state relative-caret-position="-477">
<caret line="11" lean-forward="true" selection-start-line="11" selection-end-line="11" /> <caret line="15" column="108" selection-start-line="15" selection-start-column="90" selection-end-line="15" selection-end-column="108" />
<folding> <folding>
<element signature="e#0#11#0" expanded="true" /> <element signature="e#0#11#0" expanded="true" />
<marker date="1556240879000" expanded="true" signature="1310:1499" ph="..." />
</folding> </folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/auto_request.py"> <entry file="file://$PROJECT_DIR$/auto_click2.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="194"> <state relative-caret-position="299">
<caret line="147" column="32" selection-start-line="147" selection-start-column="32" selection-end-line="147" selection-end-column="32" /> <caret line="47" lean-forward="true" selection-start-line="47" selection-end-line="47" />
<folding> <folding>
<element signature="e#0#15#0" expanded="true" /> <element signature="e#0#11#0" expanded="true" />
</folding> </folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/auto_click1.py"> <entry file="file://$PROJECT_DIR$/auto_click3.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="225"> <state relative-caret-position="227">
<caret line="15" column="108" selection-start-line="15" selection-start-column="90" selection-end-line="15" selection-end-column="108" /> <caret line="39" column="26" lean-forward="true" selection-start-line="39" selection-start-column="26" selection-end-line="39" selection-end-column="26" />
<folding> <folding>
<element signature="e#0#11#0" expanded="true" /> <element signature="e#0#11#0" expanded="true" />
<marker date="1556240879000" expanded="true" signature="1310:1499" ph="..." /> </folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/auto_commnet.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="487">
<caret line="75" column="39" lean-forward="true" selection-start-line="75" selection-start-column="16" selection-end-line="75" selection-end-column="39" />
<folding>
<element signature="e#0#15#0" expanded="true" />
</folding> </folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/auto_comment1.py"> <entry file="file://$PROJECT_DIR$/auto_comment1.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="695"> <state relative-caret-position="148">
<caret line="51" lean-forward="true" selection-start-line="51" selection-end-line="51" /> <caret line="72" column="44" selection-start-line="72" selection-start-column="44" selection-end-line="72" selection-end-column="44" />
<folding> <folding>
<element signature="e#0#11#0" expanded="true" /> <element signature="e#0#11#0" expanded="true" />
</folding> </folding>
</state> </state>
</provider> </provider>
</entry> </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"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-16"> <state relative-caret-position="482">
<caret line="10" column="8" lean-forward="true" selection-start-line="10" selection-start-column="8" selection-end-line="10" selection-end-column="8" /> <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> <folding>
<element signature="e#0#11#0" expanded="true" /> <element signature="e#0#11#0" expanded="true" />
</folding> </folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/auto_comment2.py"> <entry file="file://$PROJECT_DIR$/auto_comment3.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="243"> <state relative-caret-position="268">
<caret line="37" column="12" selection-start-line="37" selection-start-column="12" selection-end-line="37" selection-end-column="12" /> <caret line="41" column="35" lean-forward="true" selection-start-line="41" selection-start-column="35" selection-end-line="41" selection-end-column="35" />
<folding> <folding>
<element signature="e#0#11#0" expanded="true" /> <element signature="e#0#11#0" expanded="true" />
</folding> </folding>
......
...@@ -8,12 +8,13 @@ from auto_request import login, click, time_conv ...@@ -8,12 +8,13 @@ from auto_request import login, click, time_conv
from auto_request import host, user, db, passwd from auto_request import host, user, db, passwd
def get_data(numtime,numtime2): def get_data(numtime, numtime2):
try: try:
pc = pymysql.connect(host=host, user=user, passwd=passwd, db=db, port=3306) pc = pymysql.connect(host=host, user=user, passwd=passwd, db=db, port=3306)
cursor = pc.cursor() cursor = pc.cursor()
cursor.execute( cursor.execute(
"SELECT user_id,id FROM topic WHERE is_online=1 and (create_time > '%s' and create_time < '%s')" % (numtime,numtime2)) "SELECT user_id,id FROM topic WHERE is_online=1 and (create_time > '%s' and create_time < '%s')" % (
numtime, numtime2))
data = cursor.fetchall() data = cursor.fetchall()
topic_id = list(data) topic_id = list(data)
topic_id_list = [] topic_id_list = []
...@@ -55,8 +56,8 @@ if __name__ == "__main__": ...@@ -55,8 +56,8 @@ if __name__ == "__main__":
try: try:
numtime,numtime2 = time_conv(15,5) numtime, numtime2 = time_conv(10, 20)
user_id = get_data(numtime,numtime) user_id = get_data(numtime, numtime)
dicts = {} dicts = {}
if user_id: if user_id:
...@@ -79,7 +80,6 @@ if __name__ == "__main__": ...@@ -79,7 +80,6 @@ if __name__ == "__main__":
cook = login() cook = login()
if cook is not None: if cook is not None:
write_id_file(rand_id) write_id_file(rand_id)
click(cook, rand_id) click(cook, rand_id)
......
...@@ -57,7 +57,7 @@ def write_id_file(id): ...@@ -57,7 +57,7 @@ def write_id_file(id):
if __name__ == "__main__": if __name__ == "__main__":
try: try:
numtime1, numtime2 = time_conv(15, 5) numtime1, numtime2 = time_conv(10,20)
user_id = get_data(numtime1, numtime2) user_id = get_data(numtime1, numtime2)
dicts = {} dicts = {}
......
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