Commit a95c2983 authored by lixiaofang's avatar lixiaofang

cookies

parent 6591556c
......@@ -2,10 +2,7 @@
<project version="4">
<component name="ChangeListManager">
<list default="true" id="fd1f0b61-1139-44e5-87e7-f8b86ff52376" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/auto_at_once.py" beforeDir="false" afterPath="$PROJECT_DIR$/auto_at_once.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/auto_click.py" beforeDir="false" afterPath="$PROJECT_DIR$/auto_click.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/auto_click_n.py" beforeDir="false" afterPath="$PROJECT_DIR$/auto_click_n.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/auto_commnet.py" beforeDir="false" afterPath="$PROJECT_DIR$/auto_commnet.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/auto_follow.py" beforeDir="false" afterPath="$PROJECT_DIR$/auto_follow.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/auto_follow_new.py" beforeDir="false" afterPath="$PROJECT_DIR$/auto_follow_new.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/auto_star_topic.py" beforeDir="false" afterPath="$PROJECT_DIR$/auto_star_topic.py" afterDir="false" />
</list>
......@@ -71,7 +68,7 @@
<entry key="cuigeng" value="3" />
<entry key="data" value="1" />
<entry key="guanshui" value="5" />
<entry key="py" value="318" />
<entry key="py" value="321" />
<entry key="xuqiu" value="3" />
</counts>
</usages-collector>
......@@ -79,7 +76,7 @@
<counts>
<entry key="CSV" value="1" />
<entry key="PLAIN_TEXT" value="34" />
<entry key="Python" value="318" />
<entry key="Python" value="321" />
</counts>
</usages-collector>
<usages-collector id="statistics.file.extensions.edit">
......@@ -90,7 +87,7 @@
<entry key="cuigeng" value="1" />
<entry key="data" value="12" />
<entry key="dummy" value="31" />
<entry key="py" value="8262" />
<entry key="py" value="8340" />
<entry key="unr_data" value="1" />
<entry key="xuqiu" value="1" />
</counts>
......@@ -98,7 +95,7 @@
<usages-collector id="statistics.file.types.edit">
<counts>
<entry key="PLAIN_TEXT" value="177" />
<entry key="Python" value="8262" />
<entry key="Python" value="8340" />
</counts>
</usages-collector>
</session>
......@@ -127,13 +124,18 @@
<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="48">
<caret line="47" column="13" selection-start-line="47" selection-start-column="13" selection-end-line="47" selection-end-column="13" />
<state relative-caret-position="215">
<caret line="85" column="19" lean-forward="true" selection-start-line="85" selection-start-column="19" selection-end-line="85" selection-end-column="19" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#306#483#0" />
<element signature="e#507#894#0" />
<element signature="e#915#1721#0" />
<element signature="e#1763#2142#0" />
<element signature="e#2173#2384#0" />
<element signature="e#2417#2969#0" />
<element signature="e#2995#3249#0" />
<element signature="e#3283#3770#0" />
</folding>
</state>
</provider>
......@@ -142,8 +144,8 @@
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/auto_star_topic.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="394">
<caret line="211" column="51" selection-start-line="211" selection-start-column="51" selection-end-line="211" selection-end-column="51" />
<state relative-caret-position="235">
<caret line="164" column="26" selection-start-line="164" selection-start-column="26" selection-end-line="164" selection-end-column="26" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#338#515#0" />
......@@ -154,20 +156,7 @@
<element signature="e#2540#2753#0" />
<element signature="e#2790#3431#0" />
<element signature="e#3469#4103#0" />
</folding>
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/auto_lunch_app.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="307">
<caret line="79" column="12" selection-start-line="79" selection-start-column="12" selection-end-line="79" selection-end-column="12" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#402#579#0" />
<element signature="e#603#990#0" />
<element signature="e#4180#5252#0" />
</folding>
</state>
</provider>
......@@ -192,38 +181,33 @@
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/auto_every_day.py">
<entry file="file://$PROJECT_DIR$/auto_follow_majia.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-10">
<caret line="23" selection-start-line="23" selection-end-line="23" />
<state relative-caret-position="360">
<caret line="108" column="29" selection-start-line="108" selection-start-column="29" selection-end-line="108" selection-end-column="29" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#344#521#0" />
<element signature="e#545#932#0" />
<element signature="e#953#1671#0" />
<element signature="e#1707#2092#0" />
<element signature="e#2125#2549#0" />
<element signature="e#2580#2793#0" />
<element signature="e#2832#3772#0" />
<element signature="e#3808#4416#0" />
<element signature="e#421#598#0" />
<element signature="e#622#1009#0" />
<element signature="e#1036#1733#0" />
<element signature="e#1769#2154#0" />
<element signature="e#2177#2331#0" />
<element signature="e#2367#3399#0" />
<marker date="1544321986000" expanded="true" signature="1031:1734" ph="..." />
</folding>
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/auto_follow_majia.py">
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/auto_follow_new.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="204">
<caret line="112" column="28" lean-forward="true" selection-start-line="112" selection-start-column="28" selection-end-line="112" selection-end-column="28" />
<state relative-caret-position="61">
<caret line="166" column="29" selection-start-line="166" selection-start-column="29" selection-end-line="166" selection-end-column="29" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#421#598#0" />
<element signature="e#622#1009#0" />
<element signature="e#1036#1699#0" />
<element signature="e#1736#2121#0" />
<element signature="e#3401#4418#0" />
<marker date="1544321986000" expanded="true" signature="1031:1734" ph="..." />
<element signature="e#279#456#0" />
<element signature="e#480#867#0" />
</folding>
</state>
</provider>
......@@ -232,7 +216,7 @@
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/auto_at_once.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="289">
<state relative-caret-position="93">
<caret line="122" selection-start-line="122" selection-end-line="122" />
<folding>
<element signature="e#0#15#0" expanded="true" />
......@@ -252,6 +236,20 @@
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/auto_follow.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="195">
<caret line="179" column="2" selection-start-line="179" selection-start-column="2" selection-end-line="203" selection-end-column="55" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#279#456#0" />
<element signature="e#480#867#0" />
</folding>
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/auto_click_n.py">
<provider selected="true" editor-type-id="text-editor">
......@@ -271,10 +269,10 @@
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="true">
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/auto_click_one.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="229">
<state relative-caret-position="139">
<caret line="83" column="28" selection-start-line="83" selection-start-column="28" selection-end-line="83" selection-end-column="28" />
<folding>
<element signature="e#0#15#0" expanded="true" />
......@@ -331,7 +329,6 @@
<option value="$PROJECT_DIR$/dd.py" />
<option value="$PROJECT_DIR$/auto_click_one.py" />
<option value="$PROJECT_DIR$/auto_every_day.py" />
<option value="$PROJECT_DIR$/auto_follow.py" />
<option value="$PROJECT_DIR$/auto_follow_majia.py" />
<option value="$PROJECT_DIR$/auto_lunch_app.py" />
<option value="$PROJECT_DIR$/auto_pick.py" />
......@@ -340,19 +337,21 @@
<option value="$PROJECT_DIR$/auto_star_urge.py" />
<option value="$PROJECT_DIR$/auto_urge.py" />
<option value="$PROJECT_DIR$/auto_urge_three.py" />
<option value="$PROJECT_DIR$/auto_follow_new.py" />
<option value="$PROJECT_DIR$/auto_commnet.py" />
<option value="$PROJECT_DIR$/auto_star_topic.py" />
<option value="$PROJECT_DIR$/auto_at_once.py" />
<option value="$PROJECT_DIR$/auto_click.py" />
<option value="$PROJECT_DIR$/auto_click_n.py" />
<option value="$PROJECT_DIR$/auto_star_topic.py" />
<option value="$PROJECT_DIR$/auto_follow.py" />
<option value="$PROJECT_DIR$/auto_follow_new.py" />
</list>
</option>
</component>
<component name="ProjectFrameBounds">
<option name="y" value="24" />
<option name="x" value="46" />
<option name="y" value="34" />
<option name="width" value="1280" />
<option name="height" value="736" />
<option name="height" value="735" />
</component>
<component name="ProjectView">
<navigator proportions="" version="1">
......@@ -531,7 +530,7 @@
<servers />
</component>
<component name="ToolWindowManager">
<frame x="0" y="24" width="1280" height="736" extended-state="0" />
<frame x="46" y="34" width="1280" height="735" extended-state="0" />
<editor active="true" />
<layout>
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.16282764" />
......@@ -545,7 +544,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 anchor="bottom" id="Terminal" order="8" visible="true" weight="0.0" />
<window_info anchor="bottom" id="Terminal" order="8" visible="true" weight="0.63387096" />
<window_info anchor="bottom" id="Event Log" order="9" side_tool="true" />
<window_info anchor="bottom" id="Python Console" order="10" />
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
......@@ -696,24 +695,6 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/auto_follow.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="390">
<caret line="173" column="26" selection-start-line="173" selection-start-column="26" selection-end-line="173" selection-end-column="26" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#279#456#0" />
<element signature="e#480#867#0" />
<element signature="e#888#1571#0" />
<element signature="e#1607#1992#0" />
<element signature="e#2022#2235#0" />
<element signature="e#2264#2859#0" />
<element signature="e#2895#4109#0" />
<element signature="e#4143#4830#0" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/auto_pick.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1439">
......@@ -804,50 +785,6 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/auto_follow_new.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="132">
<caret line="156" column="17" selection-start-line="156" selection-start-column="17" selection-end-line="156" selection-end-column="17" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#279#456#0" />
<element signature="e#480#867#0" />
<element signature="e#888#1571#0" />
<element signature="e#2022#2235#0" />
<element signature="e#3655#4139#0" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/auto_commnet.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="48">
<caret line="47" column="13" selection-start-line="47" selection-start-column="13" selection-end-line="47" selection-end-column="13" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#306#483#0" />
<element signature="e#507#894#0" />
<element signature="e#915#1721#0" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/auto_follow_majia.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="204">
<caret line="112" column="28" lean-forward="true" selection-start-line="112" selection-start-column="28" selection-end-line="112" selection-end-column="28" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#421#598#0" />
<element signature="e#622#1009#0" />
<element signature="e#1036#1699#0" />
<element signature="e#1736#2121#0" />
<element signature="e#3401#4418#0" />
<marker date="1544321986000" expanded="true" signature="1031:1734" ph="..." />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/auto_lunch_app.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="307">
......@@ -894,10 +831,45 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/auto_click.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="276">
<caret line="87" column="27" selection-start-line="87" selection-start-column="27" selection-end-line="87" selection-end-column="27" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#369#546#0" />
<element signature="e#570#957#0" />
<element signature="e#977#1691#0" />
<element signature="e#1726#2110#0" />
<element signature="e#2140#2353#0" />
<element signature="e#2382#2971#0" />
<element signature="e#3005#3908#0" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/auto_commnet.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="215">
<caret line="85" column="19" lean-forward="true" selection-start-line="85" selection-start-column="19" selection-end-line="85" selection-end-column="19" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#306#483#0" />
<element signature="e#507#894#0" />
<element signature="e#915#1721#0" />
<element signature="e#1763#2142#0" />
<element signature="e#2173#2384#0" />
<element signature="e#2417#2969#0" />
<element signature="e#2995#3249#0" />
<element signature="e#3283#3770#0" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/auto_star_topic.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="394">
<caret line="211" column="51" selection-start-line="211" selection-start-column="51" selection-end-line="211" selection-end-column="51" />
<state relative-caret-position="235">
<caret line="164" column="26" selection-start-line="164" selection-start-column="26" selection-end-line="164" selection-end-column="26" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#338#515#0" />
......@@ -908,13 +880,14 @@
<element signature="e#2540#2753#0" />
<element signature="e#2790#3431#0" />
<element signature="e#3469#4103#0" />
<element signature="e#4180#5252#0" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/auto_at_once.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="289">
<state relative-caret-position="93">
<caret line="122" selection-start-line="122" selection-end-line="122" />
<folding>
<element signature="e#0#15#0" expanded="true" />
......@@ -933,19 +906,14 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/auto_click.py">
<entry file="file://$PROJECT_DIR$/auto_follow.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="276">
<caret line="87" column="27" selection-start-line="87" selection-start-column="27" selection-end-line="87" selection-end-column="27" />
<state relative-caret-position="195">
<caret line="179" column="2" selection-start-line="179" selection-start-column="2" selection-end-line="203" selection-end-column="55" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#369#546#0" />
<element signature="e#570#957#0" />
<element signature="e#977#1691#0" />
<element signature="e#1726#2110#0" />
<element signature="e#2140#2353#0" />
<element signature="e#2382#2971#0" />
<element signature="e#3005#3908#0" />
<element signature="e#279#456#0" />
<element signature="e#480#867#0" />
</folding>
</state>
</provider>
......@@ -969,7 +937,7 @@
</entry>
<entry file="file://$PROJECT_DIR$/auto_click_one.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="229">
<state relative-caret-position="139">
<caret line="83" column="28" selection-start-line="83" selection-start-column="28" selection-end-line="83" selection-end-column="28" />
<folding>
<element signature="e#0#15#0" expanded="true" />
......@@ -984,5 +952,34 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/auto_follow_majia.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="360">
<caret line="108" column="29" selection-start-line="108" selection-start-column="29" selection-end-line="108" selection-end-column="29" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#421#598#0" />
<element signature="e#622#1009#0" />
<element signature="e#1036#1733#0" />
<element signature="e#1769#2154#0" />
<element signature="e#2177#2331#0" />
<element signature="e#2367#3399#0" />
<marker date="1544321986000" expanded="true" signature="1031:1734" ph="..." />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/auto_follow_new.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="61">
<caret line="166" column="29" selection-start-line="166" selection-start-column="29" selection-end-line="166" selection-end-column="29" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#279#456#0" />
<element signature="e#480#867#0" />
</folding>
</state>
</provider>
</entry>
</component>
</project>
\ No newline at end of file
......@@ -203,6 +203,8 @@ if __name__ == "__main__":
# time.sleep(random.randint(2000,2500))
except:
logging.error("catch exception,main:%s" % traceback.format_exc())
......
......@@ -119,25 +119,36 @@ def get_commnet_id(numtime):
data_comment = cursor.fetchall()
cursor.execute(
"SELECT replied_id FROM reply WHERE create_time LIKE '%%%%%s%%%%'" % numtime)
data_reply = cursor.fetchall()
"SELECT t.user_id from topic t left join reply r on r.topic_id = t.id WHERE create_time LIKE '%%%%%s%%%%'" % numtime)
data_reply_topic = cursor.fetchall()
cursor.execute(
"SELECT r.user_id from reply r left join reply p on .replied_id = p.replied_id WHERE create_time LIKE '%%%%%s%%%%'" % numtime)
data_reply_reply = cursor.fetchall()
cursor.execute(
"SELECT user_id FROM group_user_role WHERE create_time LIKE '%%%%%s%%%%'" % numtime)
data_group_follow = cursor.fetchall()
cursor.execute(
"select user_id from account_user WHERE create_time LIKE '%%%%%s%%%%'" % numtime)
data_new_user = cursor.fetchall()
data_id = list(data_comment)
data1_id=list(data_reply)
data1_id=list(data_reply_topic)
data2_id=list(data_group_follow)
data3_id=list(data_new_user)
data_reply_reply = list(data_reply_reply)
user_id = []
......@@ -153,6 +164,9 @@ def get_commnet_id(numtime):
for i in data3_id:
if i[0] is not None:
user_id.append(i)
for i in data_reply_reply:
if i[0] is not None:
user_id.append(i)
logging.info("Database version : %s " % user_id)
......
......@@ -88,7 +88,7 @@ def click(cookies_get, id):
try:
post_dict = {
'type': 1,
'type': 0,
'id': id
}
response = requests.post(url=auto_click_url,
......@@ -182,7 +182,7 @@ if __name__ == "__main__":
urge_num = random.randint(0, 1)
for i in range(1):
for i in range(urge_num):
cookies = logins()
......
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