Commit 82a54b5e authored by lixiaofang's avatar lixiaofang

majia new

parent dc78a2b3
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
<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_at_once.py" beforeDir="false" afterPath="$PROJECT_DIR$/auto_at_once.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/auto_follow_majia.py" beforeDir="false" afterPath="$PROJECT_DIR$/auto_follow_majia.py" afterDir="false" /> <change beforePath="$PROJECT_DIR$/auto_follow_majia.py" beforeDir="false" afterPath="$PROJECT_DIR$/auto_follow_majia.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/exercise.py" beforeDir="false" afterPath="$PROJECT_DIR$/exercise.py" afterDir="false" /> <change beforePath="$PROJECT_DIR$/exercise.py" beforeDir="false" afterPath="$PROJECT_DIR$/exercise.py" afterDir="false" />
</list> </list>
...@@ -82,20 +81,20 @@ ...@@ -82,20 +81,20 @@
<usages-collector id="statistics.file.extensions.edit"> <usages-collector id="statistics.file.extensions.edit">
<counts> <counts>
<entry key="README" value="4" /> <entry key="README" value="4" />
<entry key="batch user gen" value="28" /> <entry key="batch user gen" value="111" />
<entry key="comment" value="16" /> <entry key="comment" value="16" />
<entry key="cuigeng" value="1" /> <entry key="cuigeng" value="1" />
<entry key="data" value="12" /> <entry key="data" value="12" />
<entry key="dummy" value="11" /> <entry key="dummy" value="11" />
<entry key="py" value="5739" /> <entry key="py" value="5888" />
<entry key="unr_data" value="1" /> <entry key="unr_data" value="1" />
<entry key="xuqiu" value="1" /> <entry key="xuqiu" value="1" />
</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="74" /> <entry key="PLAIN_TEXT" value="157" />
<entry key="Python" value="5739" /> <entry key="Python" value="5888" />
</counts> </counts>
</usages-collector> </usages-collector>
</session> </session>
...@@ -155,7 +154,7 @@ ...@@ -155,7 +154,7 @@
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/auto_at_once.py"> <entry file="file://$PROJECT_DIR$/auto_at_once.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="723"> <state relative-caret-position="709">
<caret line="180" column="36" selection-start-line="180" selection-start-column="36" selection-end-line="180" selection-end-column="36" /> <caret line="180" column="36" selection-start-line="180" selection-start-column="36" selection-end-line="180" selection-end-column="36" />
<folding> <folding>
<element signature="e#0#15#0" expanded="true" /> <element signature="e#0#15#0" expanded="true" />
...@@ -210,11 +209,11 @@ ...@@ -210,11 +209,11 @@
</provider> </provider>
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="true"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/batch user gen"> <entry file="file://$PROJECT_DIR$/batch user gen">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="300"> <state relative-caret-position="390">
<caret line="20" lean-forward="true" selection-start-line="20" selection-end-line="20" selection-end-column="19" /> <caret line="26" selection-start-line="26" selection-end-line="26" />
</state> </state>
</provider> </provider>
</entry> </entry>
...@@ -242,8 +241,8 @@ ...@@ -242,8 +241,8 @@
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/auto_follow_majia.py"> <entry file="file://$PROJECT_DIR$/auto_follow_majia.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="164"> <state relative-caret-position="67">
<caret line="78" selection-start-line="78" selection-end-line="78" /> <caret line="102" selection-start-line="102" selection-end-line="111" selection-end-column="35" />
<folding> <folding>
<element signature="e#0#15#0" expanded="true" /> <element signature="e#0#15#0" expanded="true" />
<element signature="e#364#424#0" /> <element signature="e#364#424#0" />
...@@ -254,11 +253,11 @@ ...@@ -254,11 +253,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$/exercise.py"> <entry file="file://$PROJECT_DIR$/exercise.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="248"> <state relative-caret-position="322">
<caret line="36" column="11" selection-start-line="36" selection-start-column="11" selection-end-line="36" selection-end-column="11" /> <caret line="44" column="36" lean-forward="true" selection-start-line="41" selection-end-line="44" selection-end-column="36" />
</state> </state>
</provider> </provider>
</entry> </entry>
...@@ -287,7 +286,6 @@ ...@@ -287,7 +286,6 @@
<option value="$PROJECT_DIR$/auto_start_up.py" /> <option value="$PROJECT_DIR$/auto_start_up.py" />
<option value="$PROJECT_DIR$/auto_click_star.py" /> <option value="$PROJECT_DIR$/auto_click_star.py" />
<option value="$PROJECT_DIR$/aotu_at_once.py" /> <option value="$PROJECT_DIR$/aotu_at_once.py" />
<option value="$PROJECT_DIR$/batch user gen" />
<option value="$PROJECT_DIR$/auto_click.py" /> <option value="$PROJECT_DIR$/auto_click.py" />
<option value="$PROJECT_DIR$/auto_commnet.py" /> <option value="$PROJECT_DIR$/auto_commnet.py" />
<option value="$PROJECT_DIR$/auto_pick.py" /> <option value="$PROJECT_DIR$/auto_pick.py" />
...@@ -301,15 +299,16 @@ ...@@ -301,15 +299,16 @@
<option value="$PROJECT_DIR$/auto_urge.py" /> <option value="$PROJECT_DIR$/auto_urge.py" />
<option value="$PROJECT_DIR$/auto_urge_three.py" /> <option value="$PROJECT_DIR$/auto_urge_three.py" />
<option value="$PROJECT_DIR$/auto_at_once.py" /> <option value="$PROJECT_DIR$/auto_at_once.py" />
<option value="$PROJECT_DIR$/exercise.py" /> <option value="$PROJECT_DIR$/batch user gen" />
<option value="$PROJECT_DIR$/auto_follow_majia.py" /> <option value="$PROJECT_DIR$/auto_follow_majia.py" />
<option value="$PROJECT_DIR$/exercise.py" />
</list> </list>
</option> </option>
</component> </component>
<component name="ProjectFrameBounds"> <component name="ProjectFrameBounds">
<option name="x" value="23" /> <option name="x" value="22" />
<option name="y" value="23" /> <option name="y" value="23" />
<option name="width" value="1280" /> <option name="width" value="1342" />
<option name="height" value="727" /> <option name="height" value="727" />
</component> </component>
<component name="ProjectView"> <component name="ProjectView">
...@@ -443,21 +442,21 @@ ...@@ -443,21 +442,21 @@
<servers /> <servers />
</component> </component>
<component name="ToolWindowManager"> <component name="ToolWindowManager">
<frame x="23" y="23" width="1280" height="727" extended-state="0" /> <frame x="22" y="23" width="1342" height="727" extended-state="0" />
<editor active="true" /> <editor active="true" />
<layout> <layout>
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.19301033" /> <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.18395156" />
<window_info id="Structure" order="1" side_tool="true" weight="0.25" /> <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
<window_info id="Favorites" order="2" side_tool="true" /> <window_info id="Favorites" order="2" side_tool="true" />
<window_info anchor="bottom" id="Message" order="0" /> <window_info anchor="bottom" id="Message" order="0" />
<window_info anchor="bottom" id="Find" order="1" weight="0.32921174" /> <window_info anchor="bottom" id="Find" order="1" weight="0.32921174" />
<window_info anchor="bottom" id="Run" order="2" visible="true" weight="0.17795275" /> <window_info active="true" anchor="bottom" id="Run" order="2" visible="true" weight="0.2976378" />
<window_info anchor="bottom" id="Debug" order="3" weight="0.39258114" /> <window_info anchor="bottom" id="Debug" order="3" weight="0.39258114" />
<window_info anchor="bottom" id="Cvs" order="4" weight="0.25" /> <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
<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 anchor="bottom" id="Terminal" order="8" weight="0.12598425" /> <window_info anchor="bottom" id="Terminal" order="8" weight="0.0" />
<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="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" /> <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
...@@ -690,43 +689,6 @@ ...@@ -690,43 +689,6 @@
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/auto_at_once.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="723">
<caret line="180" column="36" selection-start-line="180" selection-start-column="36" selection-end-line="180" selection-end-column="36" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#364#424#0" />
<element signature="e#699#1186#0" />
<element signature="e#1209#1605#0" />
<element signature="e#1640#1873#0" />
<element signature="e#1907#2139#0" />
<element signature="e#2180#2407#0" />
<element signature="e#3014#3269#0" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/exercise.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="248">
<caret line="36" column="11" selection-start-line="36" selection-start-column="11" selection-end-line="36" selection-end-column="11" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/auto_follow_majia.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="164">
<caret line="78" selection-start-line="78" selection-end-line="78" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#364#424#0" />
<element signature="e#702#1098#0" />
<element signature="e#1133#1366#0" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/auto_star_topic.py"> <entry file="file://$PROJECT_DIR$/auto_star_topic.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="255"> <state relative-caret-position="255">
...@@ -761,10 +723,47 @@ ...@@ -761,10 +723,47 @@
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/auto_at_once.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="709">
<caret line="180" column="36" selection-start-line="180" selection-start-column="36" selection-end-line="180" selection-end-column="36" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#364#424#0" />
<element signature="e#699#1186#0" />
<element signature="e#1209#1605#0" />
<element signature="e#1640#1873#0" />
<element signature="e#1907#2139#0" />
<element signature="e#2180#2407#0" />
<element signature="e#3014#3269#0" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/batch user gen"> <entry file="file://$PROJECT_DIR$/batch user gen">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="300"> <state relative-caret-position="390">
<caret line="20" lean-forward="true" selection-start-line="20" selection-end-line="20" selection-end-column="19" /> <caret line="26" selection-start-line="26" selection-end-line="26" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/auto_follow_majia.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="67">
<caret line="102" selection-start-line="102" selection-end-line="111" selection-end-column="35" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#364#424#0" />
<element signature="e#702#1098#0" />
<element signature="e#1133#1366#0" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/exercise.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="322">
<caret line="44" column="36" lean-forward="true" selection-start-line="41" selection-end-line="44" selection-end-column="36" />
</state> </state>
</provider> </provider>
</entry> </entry>
......
...@@ -17,15 +17,15 @@ def index_first(): ...@@ -17,15 +17,15 @@ def index_first():
return r1.cookies.get_dict() return r1.cookies.get_dict()
def get_majia(): # def get_majia():
#
data = open("batch user gen") # data = open("batch user gen")
#
list=[] # list=[]
for i in data: # for i in data:
list.append(i.strip('\n').strip(',')) # list.append(i.strip('\n').strip(','))
#
return list # return list
def logins(id): def logins(id):
...@@ -76,9 +76,9 @@ def get_follw_majia(numtime,id): ...@@ -76,9 +76,9 @@ def get_follw_majia(numtime,id):
cursor = db.cursor() cursor = db.cursor()
print("---------") print("---------")
cursor.execute("select temp1.user_id,temp1.email ,temp2.follow_id from account_user_auth temp1 left join " cursor.execute("select temp1.user_id,temp1.email,temp2.follow_id from account_user_auth temp1 left join "
"(select user_id,follow_id from user_follow) " "(select user_id,follow_id from user_follow) "
" temp2 on temp1.user_id=temp2.user_id where temp1.user_id in %s ",('s_05tmwu@shadow.com','s_07CRHt@shadow.com','s_0bdxxU@shadow.com','s_0mfxcO@shadow.com','s_0u6eaV@shadow.com','s_0UudEr@shadow.com','s_1b3v5V@shadow.com','s_1dbAoA@shadow.com','s_1dholX@shadow.com','s_1EpLlt@shadow.com','s_1iyrBU@shadow.com')) " temp2 on temp1.user_id=temp2.user_id where temp1.email in ('s_05tmwu@shadow.com','s_07CRHt@shadow.com','s_0bdxxU@shadow.com','s_0mfxcO@shadow.com','s_0u6eaV@shadow.com','s_0UudEr@shadow.com','s_1b3v5V@shadow.com','s_1dbAoA@shadow.com','s_1dholX@shadow.com','s_1EpLlt@shadow.com','s_1iyrBU@shadow.com')")
data = cursor.fetchall() data = cursor.fetchall()
...@@ -98,28 +98,55 @@ if __name__ == "__main__": ...@@ -98,28 +98,55 @@ if __name__ == "__main__":
data = get_follw_majia(numtime, id) data = get_follw_majia(numtime, id)
dict = {} dict_follow_id = {}
for j in data:
if j[2] != None:
if j[0] not in dict_follow_id.keys():
dict_follow_id.setdefault(j[0], [])
dict_follow_id[j[0]].append(j[2])
else:
dict_follow_id[j[0]].append(j[2])
dict_email = {}
for j in data:
if j[2] != None:
if j[0] not in dict_email.keys():
dict_email.setdefault(j[0], [])
dict_email[j[0]].append(j[1])
else:
dict_email[j[0]].append(j[1])
for key, value in dict_follow_id.items():
id = dict_email[key][0]
for i in value:
cookies=logins()
follow(cookies,i)
for i in data:
if i[0] not in dict:
dict.setdefault(i[0], [])
dict[i[0]].append(i[1])
else:
dict[i[0]].append(i[1])
for key, value in dict.items():
majia =get_majia()
if key in majia:
cookies = logins(key)
for id in value:
follow(cookies, id)
# import random
#
#
# def get_majia():
#
# data = open("batch user gen")
#
# list=[]
# for i in data:
# list.append(i.strip('\n').strip(','))
#
#
# # time.sleep(random.randint(0, 500))
#
#
# maj = random.randint(1, len(list))
#
# user_id=list[maj]
#
# return user_id
#
# print(get_majia())
data = open("batch user gen")
list = []
for i in data:
list.append(i.strip('\n').strip(','))
print(list)
l = 's_0bdxxU@shadow.com'
if l in list:
print(l)
\ No newline at end of file
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