Commit b0c66013 authored by lixiaofang's avatar lixiaofang

majia new

parent 9c0bd0c3
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<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 afterPath="$PROJECT_DIR$/auto_click_n.py" afterDir="false" />
<change afterPath="$PROJECT_DIR$/auto_every.py" afterDir="false" />
<change afterPath="$PROJECT_DIR$/auto_star_topic.py" afterDir="false" />
<change afterPath="$PROJECT_DIR$/exercise.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/aotu_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_star.py" beforeDir="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_majia.py" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/auto_pick.py" beforeDir="false" afterPath="$PROJECT_DIR$/auto_pick.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/auto_urge.py" beforeDir="false" afterPath="$PROJECT_DIR$/auto_urge.py" afterDir="false" />
</list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
......@@ -48,8 +62,10 @@
<session id="1098123323">
<usages-collector id="statistics.lifecycle.project">
<counts>
<entry key="project.closed" value="1" />
<entry key="project.open.time.0" value="1" />
<entry key="project.opened" value="1" />
<entry key="project.open.time.1" value="1" />
<entry key="project.opened" value="2" />
</counts>
</usages-collector>
<usages-collector id="statistics.file.extensions.open">
......@@ -61,7 +77,7 @@
<entry key="cuigeng" value="3" />
<entry key="data" value="1" />
<entry key="guanshui" value="3" />
<entry key="py" value="74" />
<entry key="py" value="111" />
<entry key="xuqiu" value="3" />
</counts>
</usages-collector>
......@@ -69,7 +85,7 @@
<counts>
<entry key="CSV" value="1" />
<entry key="PLAIN_TEXT" value="27" />
<entry key="Python" value="74" />
<entry key="Python" value="111" />
</counts>
</usages-collector>
<usages-collector id="statistics.file.extensions.edit">
......@@ -78,43 +94,22 @@
<entry key="comment" value="16" />
<entry key="cuigeng" value="1" />
<entry key="data" value="12" />
<entry key="py" value="3186" />
<entry key="dummy" value="11" />
<entry key="py" value="4811" />
<entry key="unr_data" value="1" />
<entry key="xuqiu" value="1" />
</counts>
</usages-collector>
<usages-collector id="statistics.file.types.edit">
<counts>
<entry key="PLAIN_TEXT" value="35" />
<entry key="Python" value="3186" />
<entry key="PLAIN_TEXT" value="46" />
<entry key="Python" value="4811" />
</counts>
</usages-collector>
</session>
</component>
<component name="FileEditorManager">
<leaf>
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/auto_commnet.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1677">
<caret line="119" column="16" lean-forward="true" selection-start-line="119" selection-start-column="16" selection-end-line="119" selection-end-column="16" />
<folding>
<element signature="e#0#15#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/auto_click.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="317">
<caret line="113" column="23" lean-forward="true" selection-start-line="113" selection-start-column="23" selection-end-line="113" selection-end-column="23" />
</state>
</provider>
</entry>
</file>
</leaf>
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300" />
</component>
<component name="FileTemplateManagerImpl">
<option name="RECENT_TEMPLATES">
......@@ -136,29 +131,31 @@
<option value="$PROJECT_DIR$/cuigeng" />
<option value="$PROJECT_DIR$/README" />
<option value="$PROJECT_DIR$/auto_start_up.py" />
<option value="$PROJECT_DIR$/auto_urge.py" />
<option value="$PROJECT_DIR$/auto_pick.py" />
<option value="$PROJECT_DIR$/auto_follow_majia.py" />
<option value="$PROJECT_DIR$/auto_follow.py" />
<option value="$PROJECT_DIR$/auto_click_star.py" />
<option value="$PROJECT_DIR$/auto_follow_majia.py" />
<option value="$PROJECT_DIR$/auto_urge.py" />
<option value="$PROJECT_DIR$/auto_click_n.py" />
<option value="$PROJECT_DIR$/exercise.py" />
<option value="$PROJECT_DIR$/auto_commnet.py" />
<option value="$PROJECT_DIR$/aotu_at_once.py" />
<option value="$PROJECT_DIR$/auto_follow.py" />
<option value="$PROJECT_DIR$/auto_click.py" />
<option value="$PROJECT_DIR$/auto_commnet.py" />
<option value="$PROJECT_DIR$/auto_star_topic.py" />
<option value="$PROJECT_DIR$/auto_every.py" />
<option value="$PROJECT_DIR$/auto_pick.py" />
</list>
</option>
</component>
<component name="ProjectFrameBounds">
<option name="x" value="114" />
<option name="y" value="74" />
<option name="y" value="23" />
<option name="width" value="1280" />
<option name="height" value="725" />
<option name="height" value="727" />
</component>
<component name="ProjectView">
<navigator proportions="" version="1">
<foldersAlwaysOnTop value="true" />
</navigator>
<panes>
<pane id="Scope" />
<pane id="ProjectPane">
<subPane>
<expand>
......@@ -170,6 +167,7 @@
<select />
</subPane>
</pane>
<pane id="Scope" />
</panes>
</component>
<component name="PropertiesComponent">
......@@ -194,7 +192,7 @@
</list>
</option>
</component>
<component name="RunManager" selected="Python.auto_click_star">
<component name="RunManager" selected="Python.exercise">
<configuration name="auto_click_star" type="PythonConfigurationType" factoryName="Python" temporary="true">
<module name="cybertron" />
<option name="INTERPRETER_OPTIONS" value="" />
......@@ -207,7 +205,7 @@
<option name="IS_MODULE_SDK" value="true" />
<option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/auto_click_star.py" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/auto_one_day.py" />
<option name="PARAMETERS" value="" />
<option name="SHOW_COMMAND_LINE" value="false" />
<option name="EMULATE_TERMINAL" value="false" />
......@@ -237,12 +235,35 @@
<option name="INPUT_FILE" value="" />
<method v="2" />
</configuration>
<configuration name="exercise" type="PythonConfigurationType" factoryName="Python" temporary="true">
<module name="cybertron" />
<option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" />
<envs>
<env name="PYTHONUNBUFFERED" value="1" />
</envs>
<option name="SDK_HOME" value="" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
<option name="IS_MODULE_SDK" value="true" />
<option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/exercise.py" />
<option name="PARAMETERS" value="" />
<option name="SHOW_COMMAND_LINE" value="false" />
<option name="EMULATE_TERMINAL" value="false" />
<option name="MODULE_MODE" value="false" />
<option name="REDIRECT_INPUT" value="false" />
<option name="INPUT_FILE" value="" />
<method v="2" />
</configuration>
<list>
<item itemvalue="Python.auto_commnet" />
<item itemvalue="Python.auto_click_star" />
<item itemvalue="Python.exercise" />
</list>
<recent_temporary>
<list>
<item itemvalue="Python.exercise" />
<item itemvalue="Python.auto_click_star" />
</list>
</recent_temporary>
......@@ -261,20 +282,20 @@
<servers />
</component>
<component name="ToolWindowManager">
<frame x="114" y="74" width="1280" height="725" extended-state="0" />
<frame x="0" y="23" width="1280" height="727" extended-state="0" />
<layout>
<window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.17791899" />
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.18427323" />
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
<window_info id="Favorites" order="2" side_tool="true" />
<window_info anchor="bottom" id="Message" order="0" />
<window_info anchor="bottom" id="Find" order="1" weight="0.32921174" />
<window_info anchor="bottom" id="Run" order="2" weight="0.0" />
<window_info anchor="bottom" id="Run" order="2" weight="0.07401575" />
<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="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.31753555" />
<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="Python Console" order="10" />
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
......@@ -282,18 +303,18 @@
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
</layout>
<layout-to-restore>
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.15806195" />
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.18427323" />
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
<window_info id="Favorites" order="2" side_tool="true" />
<window_info anchor="bottom" id="Message" order="0" />
<window_info anchor="bottom" id="Find" order="1" weight="0.32921174" />
<window_info anchor="bottom" id="Run" order="2" weight="0.0" />
<window_info anchor="bottom" id="Run" order="2" visible="true" weight="0.07401575" />
<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="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.18783543" />
<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="Python Console" order="10" />
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
......@@ -308,208 +329,211 @@
<breakpoint-manager>
<breakpoints>
<line-breakpoint enabled="true" suspend="THREAD" type="python-line">
<url>file://$PROJECT_DIR$/auto_follow_majia.py</url>
<line>58</line>
<option name="timeStamp" value="20" />
</line-breakpoint>
<line-breakpoint enabled="true" suspend="THREAD" type="python-line">
<url>file://$PROJECT_DIR$/auto_follow.py</url>
<line>62</line>
<option name="timeStamp" value="27" />
<url>file://$PROJECT_DIR$/auto_at_once.py</url>
<line>110</line>
<option name="timeStamp" value="42" />
</line-breakpoint>
<line-breakpoint enabled="true" suspend="THREAD" type="python-line">
<url>file://$PROJECT_DIR$/aotu_at_once.py</url>
<line>63</line>
<option name="timeStamp" value="32" />
<url>file://$PROJECT_DIR$/auto_at_once.py</url>
<line>116</line>
<option name="timeStamp" value="43" />
</line-breakpoint>
<line-breakpoint enabled="true" suspend="THREAD" type="python-line">
<url>file://$PROJECT_DIR$/aotu_at_once.py</url>
<line>91</line>
<option name="timeStamp" value="33" />
</line-breakpoint>
<line-breakpoint enabled="true" suspend="THREAD" type="python-line">
<url>file://$PROJECT_DIR$/auto_click.py</url>
<line>22</line>
<option name="timeStamp" value="34" />
<url>file://$PROJECT_DIR$/auto_every.py</url>
<line>110</line>
<option name="timeStamp" value="48" />
</line-breakpoint>
</breakpoints>
</breakpoint-manager>
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/comment_data.csv">
<provider selected="true" editor-type-id="csv-text-editor">
<state relative-caret-position="45">
<caret line="3" column="1" lean-forward="true" selection-start-line="3" selection-start-column="1" selection-end-line="3" selection-end-column="1" />
<entry file="file://$PROJECT_DIR$/comment_data.csv" />
<entry file="file://$PROJECT_DIR$/comment_data" />
<entry file="file://$PROJECT_DIR$/xuqiu" />
<entry file="file://$PROJECT_DIR$/auto_start_up.py" />
<entry file="file://$PROJECT_DIR$/cuigeng" />
<entry file="file://$PROJECT_DIR$/comment" />
<entry file="file://$PROJECT_DIR$/README">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="60">
<caret line="4" lean-forward="true" selection-start-line="4" selection-end-line="4" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/comment_data">
<entry file="file://$PROJECT_DIR$/guanshui">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="15">
<caret line="21" column="30" lean-forward="true" selection-start-line="21" selection-start-column="30" selection-end-line="21" selection-end-column="30" />
<state relative-caret-position="339">
<caret line="265" column="14" lean-forward="true" selection-start-line="265" selection-start-column="14" selection-end-line="265" selection-end-column="14" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xuqiu">
<entry file="file://$PROJECT_DIR$/auto_one_day.py">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/auto_start_up.py">
<entry file="file://$PROJECT_DIR$/auto_click_n.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1639">
<caret line="213" column="41" selection-start-line="213" selection-start-column="41" selection-end-line="213" selection-end-column="41" />
<state relative-caret-position="345">
<caret line="128" lean-forward="true" selection-start-line="128" selection-end-line="128" />
<folding>
<element signature="e#733#792#0" />
<element signature="e#828#1031#0" />
<element signature="e#1061#1490#0" />
<element signature="e#1521#1692#0" />
<element signature="e#1724#1971#0" />
<element signature="e#2288#2521#0" />
<element signature="e#2273#2749#0" />
<element signature="e#5361#6812#0" />
<element signature="e#304#364#0" />
<element signature="e#400#980#0" />
<element signature="e#1015#1247#0" />
<element signature="e#1278#1434#0" />
<element signature="e#1463#1896#0" />
<element signature="e#1930#2654#0" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/cuigeng">
<entry file="file://$PROJECT_DIR$/exercise.py">
<provider selected="true" editor-type-id="text-editor">
<state>
<caret selection-end-column="13" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/comment">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="290">
<caret line="405" column="26" lean-forward="true" selection-start-line="405" selection-start-column="24" selection-end-line="405" selection-end-column="26" />
<state relative-caret-position="339">
<caret line="50" lean-forward="true" selection-start-line="50" selection-end-line="50" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/README">
<entry file="file://$PROJECT_DIR$/auto_at_once.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="60">
<caret line="4" lean-forward="true" selection-start-line="4" selection-end-line="4" />
<state relative-caret-position="146">
<caret line="195" column="23" selection-start-line="195" selection-start-column="23" selection-end-line="195" selection-end-column="23" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#364#424#0" />
<element signature="e#444#957#0" />
<element signature="e#980#1376#0" />
<element signature="e#1411#1644#0" />
<element signature="e#1678#1910#0" />
<element signature="e#1951#2178#0" />
<element signature="e#2202#2297#0" />
<element signature="e#2327#2754#0" />
<element signature="e#2780#3035#0" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/guanshui">
<entry file="file://$PROJECT_DIR$/auto_commnet.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="339">
<caret line="265" column="14" lean-forward="true" selection-start-line="265" selection-start-column="14" selection-end-line="265" selection-end-column="14" />
<state relative-caret-position="225">
<caret line="19" selection-start-line="19" selection-end-line="19" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#249#309#0" />
<element signature="e#329#865#0" />
<element signature="e#907#1133#0" />
<element signature="e#1164#1318#0" />
<element signature="e#1352#1759#0" />
<element signature="e#1785#2060#0" />
<element signature="e#2094#2397#0" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/auto_urge.py">
<entry file="file://$PROJECT_DIR$/auto_every.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="283">
<caret line="72" lean-forward="true" selection-start-line="72" selection-end-line="72" />
<state relative-caret-position="330">
<caret line="83" selection-start-line="83" selection-end-line="83" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#447#966#0" />
<element signature="e#286#345#0" />
<element signature="e#365#928#0" />
<element signature="e#963#1196#0" />
<element signature="e#1228#1504#0" />
<element signature="e#1534#1705#0" />
<element signature="e#1735#2326#0" />
<element signature="e#2529#2962#0" />
<element signature="e#2767#2975#0" />
<element signature="e#2889#3098#0" />
<marker date="1544151497000" expanded="false" signature="1739:2971" ph="..." />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/auto_pick.py">
<entry file="file://$PROJECT_DIR$/auto_click.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="120">
<caret line="8" column="61" selection-start-line="8" selection-start-column="61" selection-end-line="8" selection-end-column="61" />
<state relative-caret-position="294">
<caret line="78" selection-start-line="78" selection-end-line="88" selection-end-column="18" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#266#326#0" />
<element signature="e#346#865#0" />
<element signature="e#604#851#0" />
<element signature="e#614#691#0" />
<element signature="e#883#1052#0" />
<element signature="e#1083#1495#0" />
<element signature="e#1533#2009#0" />
<element signature="e#2345#2969#0" />
<element signature="e#312#372#0" />
<element signature="e#408#976#0" />
<element signature="e#1011#1243#0" />
<element signature="e#1274#1430#0" />
<element signature="e#1926#2651#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="301">
<caret line="91" column="26" selection-start-line="91" selection-start-column="26" selection-end-line="91" selection-end-column="26" />
<state relative-caret-position="452">
<caret line="79" selection-start-line="79" selection-end-line="79" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#343#402#0" />
<element signature="e#422#941#0" />
<element signature="e#675#908#0" />
<element signature="e#931#1043#0" />
<element signature="e#1076#1530#0" />
<element signature="e#1865#2236#0" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/auto_click_star.py">
<entry file="file://$PROJECT_DIR$/auto_follow.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="380">
<caret line="156" selection-start-line="156" selection-end-line="156" />
<state relative-caret-position="199">
<caret line="113" column="32" lean-forward="true" selection-start-line="113" selection-start-column="32" selection-end-line="113" selection-end-column="32" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#552#611#0" />
<element signature="e#631#1188#0" />
<element signature="e#880#1112#0" />
<element signature="e#1147#1379#0" />
<element signature="e#1412#1624#0" />
<element signature="e#1656#1903#0" />
<element signature="e#1934#2105#0" />
<element signature="e#2142#2605#0" />
<element signature="e#2641#3099#0" />
<element signature="e#3534#4823#0" />
<marker date="1543912788000" expanded="false" signature="3438:3439" ph="..." />
<element signature="e#221#280#0" />
<element signature="e#300#863#0" />
<element signature="e#898#1131#0" />
<element signature="e#1161#1332#0" />
<element signature="e#1361#1795#0" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/auto_follow.py">
<entry file="file://$PROJECT_DIR$/auto_urge.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="421">
<caret line="146" column="26" selection-start-line="146" selection-start-column="26" selection-end-line="146" selection-end-column="26" />
<state relative-caret-position="330">
<caret line="102" lean-forward="true" selection-start-line="102" selection-end-line="102" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#345#404#0" />
<element signature="e#428#989#0" />
<element signature="e#678#911#0" />
<element signature="e#942#1113#0" />
<element signature="e#1143#1577#0" />
<element signature="e#1620#2831#0" />
<element signature="e#3164#4269#0" />
<element signature="e#243#302#0" />
<element signature="e#322#841#0" />
<element signature="e#874#1086#0" />
<element signature="e#1116#1287#0" />
<element signature="e#1317#1752#0" />
<element signature="e#1788#2251#0" />
<element signature="e#2285#3087#0" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/aotu_at_once.py">
<entry file="file://$PROJECT_DIR$/auto_pick.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-34">
<caret line="63" selection-start-line="63" selection-end-line="63" />
<state relative-caret-position="198">
<caret line="189" column="45" lean-forward="true" selection-start-line="189" selection-start-column="45" selection-end-line="189" selection-end-column="45" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#403#463#0" />
<element signature="e#446#959#0" />
<element signature="e#736#969#0" />
<element signature="e#1013#1056#0" />
<element signature="e#1652#2079#0" />
<element signature="e#2727#3295#0" />
<element signature="e#226#286#0" />
<element signature="e#306#825#0" />
<element signature="e#857#1133#0" />
<element signature="e#1363#1775#0" />
<element signature="e#1812#2288#0" />
<element signature="e#2324#2787#0" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/auto_click.py">
<entry file="file://$PROJECT_DIR$/auto_star_topic.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="317">
<caret line="113" column="23" lean-forward="true" selection-start-line="113" selection-start-column="23" selection-end-line="113" selection-end-column="23" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/auto_commnet.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1677">
<caret line="119" column="16" lean-forward="true" selection-start-line="119" selection-start-column="16" selection-end-line="119" selection-end-column="16" />
<state relative-caret-position="490">
<caret line="123" column="26" selection-start-line="123" selection-start-column="26" selection-end-line="123" selection-end-column="26" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#373#433#0" />
<element signature="e#469#1037#0" />
<element signature="e#1072#1304#0" />
<element signature="e#1339#1572#0" />
<element signature="e#1796#2276#0" />
<element signature="e#2315#2773#0" />
<element signature="e#2807#3481#0" />
</folding>
</state>
</provider>
......
......@@ -50,6 +50,31 @@ def login():
return {'sessionid': cook}
def logins(id):
cookies = index_first()
post_dict={
'account_type':2,
'pwd':'123456',
'email':id
}
response = requests.post(
url=login_url,
data=post_dict,
cookies=cookies
)
headers=response.headers
cook = headers['Set-Cookie'].split(";")
cook = cook[0].split('=')[1]
print(response.text, 'url')
return {'sessionid': cook}
def follow(cookies_get, id):
post_dict = {
'type': 1,
......@@ -61,7 +86,7 @@ def follow(cookies_get, id):
print(response.text, 'url')
def dz(cookies_get, id):
def click(cookies_get, id):
post_dict = {
'type': 1,
'id': id
......@@ -77,7 +102,7 @@ def reply(cookies_get,id,content):
'topic_id':id,
'content':content
}
response=requests.get(url=auto_click_url,
response=requests.post(url=auto_click_url,
cookies=cookies_get,
data=post_dict)
......@@ -89,7 +114,7 @@ def time_conv():
yes_time_str=now.strftime('%Y-%m-%d')
return yes_time_str
def get_data(numtime):
def get_topic_id(numtime):
db = pymysql.connect(host="rm-2ze5k2we69904787l.mysql.rds.aliyuncs.com", user='work', passwd='Gengmei123',
db="alpha", port=3306)
......@@ -117,35 +142,81 @@ def get_comment():
return comment
def get_follw_majia(numtime,id):
db = pymysql.connect(host="rm-2ze5k2we69904787l.mysql.rds.aliyuncs.com", user='work', passwd='Gengmei123',
db="alpha", port=3306)
cursor = db.cursor()
print("---------")
cursor.execute("SELECT user_id,follow_id FROM user_follow WHERE update_time LIKE '%%%%%s%%%%' and user_id in '%%%%s%%%%' " % (numtime,id))
data = cursor.fetchall()
print("Database version : %s " % data)
db.close()
return data
if __name__ == "__main__":
numtime=time_conv()
numtime=time_conv(0)
user_id = get_data(numtime)
topic_id = get_topic_id(numtime)
for j in user_id:
for j in topic_id:
id = int(j[0])
num = random.randint(0,2)
click_num = random.randint(1,5)
if num == 0:
for i in range(click_num):
cookies=login()
# time.sleep(random.randint(500, 1500))
comment = get_comment()
cookies = login()
reply(cookies, id, comment)
click(cookies, id)
if num == 1:
# time.sleep(random.randint(500, 1500))
cookies = login()
comment_num = random.randint(1, 3)
for i in range(comment_num):
dz(cookies, id)
# time.sleep(random.randint(500, 1500))
cookies= login()
comment = get_comment()
reply(cookies, id, comment)
#get majia zhanghao
data = get_follw_majia(numtime, id)
dict = {}
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():
cookies = logins(key)
for id in value:
follow(cookies, id)
......@@ -4,11 +4,11 @@ import datetime
import pymysql
import random
s = requests.session()
s.keep_alive = False
requests.adapters.DEFAULT_RETRIES = 5
# s = requests.session()
#
# s.keep_alive = False
#
# requests.adapters.DEFAULT_RETRIES = 5
auto_click_url = "http://earth.igengmei.com/api/v1/like"
......@@ -22,6 +22,18 @@ def index_first():
def login(cookies,user,pwd):
# time.sleep(random.randint(300, 500))
maj = random.randint(1, 300)
# user_id=majia[maj]
user = 's_PzFznI@shadow.com'
pwd = '123456'
cookies = index_first()
post_dict={
'account_type':2,
'pwd':pwd,
......@@ -45,7 +57,7 @@ def login(cookies,user,pwd):
return {'sessionid': cook}
def dz(cookies_get, id):
def click(cookies_get, id):
post_dict = {
'type': 1,
......@@ -57,7 +69,6 @@ def dz(cookies_get, id):
print(response.text, 'url')
def time_conv(numtime):
now = datetime.datetime.now()
......@@ -70,48 +81,55 @@ def get_data(numtime):
db="alpha", port=3306)
cursor = db.cursor()
print("---------")
cursor.execute("SELECT id FROM topic WHERE create_time LIKE '%%%%%s%%%%'" % numtime)
cursor.execute("SELECT user_id,id FROM topic WHERE create_time LIKE '%%%%%s%%%%'" % numtime)
data = cursor.fetchall()
user_id = list(data)
print("Database version : %s " % user_id)
db.close()
return user_id
if __name__ == "__main__":
time_list = [1, 3, 5,7,15,21,28,35]
time_list = [1,2,3,4,5,6,7]
for i in range(len(time_list)):
for i in time_list:
#time.sleep(random.randint(3000,4500))
numtime = time_conv(time_list[i])
numtime = time_conv(i)
user_id = get_data(numtime)
for j in user_id:
dict = {}
id = int(j[0])
for i in user_id:
#time.sleep(random.randint(200,500))
if i[0] not in dict.keys():
dict.setdefault(i[0], [])
dict[i[0]].append(i[1])
num_cishu = random.randint(0, 1)
else:
dict[i[0]].append(i[1])
if num_cishu == 1:
for key,value in dict.items():
num_majia = random.randint(1, 300)
rand_num = random.randint(0,len(value)-1)
# user_id=majia[num_majia]
rand_id = value[rand_num]
user = 's_AzAfOj@shadow.com'
urge_num = random.randint(0, 1)
pwd = '123456'
for i in range(urge_num):
cookies = index_first()
cook=login(cookies,user,pwd)
cook=login()
click(cook, rand_id)
dz(cook, id)
......@@ -4,25 +4,25 @@ import datetime
import pymysql
import random
cookies = {
"sessionid": '6',
}
s = requests.session()
s.keep_alive = False
requests.adapters.DEFAULT_RETRIES = 5
auto_follow_url = "http://earth.igengmei.com/api/v1/follow"
auto_click_url = "http://earth.igengmei.com/api/v1/like"
login_url = "http://earth.igengmei.com/api/account/login_pwd"
def index_first():
r1=requests.get(login_url)
return r1.cookies.get_dict()
def login():
def login(cookies,user,pwd):
# time.sleep(random.randint(300, 500))
num_majia = random.randint(1, 300)
......@@ -53,53 +53,58 @@ def login():
print(response.text, 'url')
print(cook)
return {'sessionid': cook}
def follow(cookies_get, id):
def click(cookies_get, id):
post_dict = {
'type': 1,
'id': id
}
response = requests.post(url=auto_follow_url,
response = requests.post(url=auto_click_url,
cookies=cookies_get,
data=post_dict)
print(response.text, 'url')
def time_conv():
def time_conv(numtime):
now = datetime.datetime.now()
yes_time_str = now.strftime('%Y-%m-%d')
print(now)
yes_time = now - datetime.timedelta(days=numtime)
yes_time_str = yes_time.strftime('%Y-%m-%d')
return yes_time_str
def get_data(numtime,id):
def get_data(numtime):
db = pymysql.connect(host="rm-2ze5k2we69904787l.mysql.rds.aliyuncs.com", user='work', passwd='Gengmei123',
db="alpha", port=3306)
cursor = db.cursor()
print("---------")
cursor.execute("SELECT user_id,follow_id FROM user_follow WHERE update_time LIKE '%%%%%s%%%%' and user_id in '%%%%s%%%%' " % (numtime,id))
cursor.execute("SELECT user_id,id FROM topic WHERE create_time LIKE '%%%%%s%%%%'" % numtime)
data = cursor.fetchall()
user_id = list(data)
print("Database version : %s " % user_id)
db.close()
return user_id
print("Database version : %s " % data)
if __name__ == "__main__":
db.close()
time_list = [1,2,3,4,5,6,7]
return data
for i in time_list:
if __name__ == "__main__":
#time.sleep(random.randint(3000,4500))
numtime = time_conv()
numtime = time_conv(7+3*i)
data = get_data(numtime,id)
user_id = get_data(numtime)
dict = {}
for i in data.values:
for i in user_id:
if i[0] not in dict:
if i[0] not in dict.keys():
dict.setdefault(i[0], [])
dict[i[0]].append(i[1])
......@@ -108,13 +113,17 @@ if __name__ == "__main__":
for key,value in dict.items():
cookies=login()
rand_num = random.randint(0,len(value)-1)
for id in value:
rand_id = value[rand_num]
follow(cookies, id)
urge_num = random.randint(0, 1)
for i in range(urge_num):
cookies = index_first()
cook=login()
click(cook, rand_id)
......@@ -17,7 +17,17 @@ def index_first():
return r1.cookies.get_dict()
def login(cookies,user,pwd):
def login():
num_majia = random.randint(1, 300)
# user_id=majia[num_majia]
user = 's_FF3qUO@shadow.com'
pwd = '123456'
cookies = index_first()
post_dict={
'account_type':2,
......@@ -43,6 +53,7 @@ def login(cookies,user,pwd):
return {'sessionid': cook}
def reply(cookies_get,id,content):
post_dict={
'topic_id':id,
'content':content
......@@ -60,19 +71,19 @@ def time_conv(numtime):
yes_time_str=yes_time.strftime('%Y-%m-%d')
return yes_time_str
def get_data(numtime):
def get_topic_id(numtime):
db = pymysql.connect(host="rm-2ze5k2we69904787l.mysql.rds.aliyuncs.com", user='work', passwd='Gengmei123', db="alpha", port=3306)
cursor = db.cursor()
# print("---------")
cursor.execute("SELECT id FROM topic WHERE create_time LIKE '%%%%%s%%%%' " %numtime)
data = cursor.fetchall()
user_id = list(data)
topic_id = list(data)
print("Database version : %s " % user_id)
print("Database version : %s " % topic_id)
db.close()
return user_id
return topic_id
def get_comment():
......@@ -91,35 +102,20 @@ def get_comment():
if __name__ == "__main__":
time_list = [1, 3, 5, 7]
for i in range(len(time_list)):
time_list = [1,2,3,4,5,6,7]
#time.sleep(random.randint(5000,6500))
for i in time_list:
numtime = time_conv(time_list[i])
#time.sleep(random.randint(500,1500))
user_id = get_data(numtime)
numtime = time_conv(i)
for j in user_id:
topic_id = get_topic_id(numtime)
id = int(j[0])
for i in topic_id:
# time.sleep(random.randint(300, 700))
num_majia = random.randint(1, 300)
cookies = index_first()
# user_id=majia[num]
user = 's_AzAfOj@shadow.com'
pwd = '123456'
cook=login(cookies,user,pwd)
cook = login()
comment = get_comment()
reply(cook, id, comment)
reply(cook, i, comment)
import requests
import time
import datetime
import pymysql
import random
auto_follow_url = "http://earth.igengmei.com/api/v1/follow"
login_url = "http://earth.igengmei.com/api/account/login_pwd"
auto_pick_url = "http://earth.igengmei.com/api/v1/pick/do_pick"
def index_first():
r1=requests.get(login_url)
return r1.cookies.get_dict()
def login():
# time.sleep(random.randint(300, 500))
num_majia = random.randint(1, 300)
# user_id=majia[num_majia]
user = 's_PzFznI@shadow.com'
pwd = '123456'
cookies = index_first()
post_dict={
'account_type':2,
'pwd':pwd,
'email':user
}
response = requests.post(
url=login_url,
data=post_dict,
cookies=cookies
)
headers=response.headers
cook = headers['Set-Cookie'].split(";")
cook = cook[0].split('=')[1]
print(response.text, 'url')
return {'sessionid': cook}
def follow(cookies_get, id):
post_dict = {
'type': 1,
'id': id
}
response = requests.post(url=auto_follow_url,
cookies=cookies_get,
data=post_dict)
print(response.text, 'url')
def pick(cookies_get,id):
post_dict={
'pick_user_id':id,
'is_pick':1,
'pick_type':0
}
response=requests.post(url=auto_pick_url,
cookies=cookies_get,
data=post_dict)
print(response.headers)
print(response.text, 'url')
def time_conv(numtime):
now = datetime.datetime.now()
yes_time = now - datetime.timedelta(days=numtime)
yes_time_str = yes_time.strftime('%Y-%m-%d')
print(now)
return yes_time_str
def get_topic_new_user(numtime):
db = pymysql.connect(host="rm-2ze5k2we69904787l.mysql.rds.aliyuncs.com", user='work', passwd='Gengmei123',
db="alpha", port=3306)
cursor = db.cursor()
print("---------")
cursor.execute("SELECT user_id FROM topic WHERE create_time LIKE '%%%%%s%%%%'" % numtime)
topic_data = cursor.fetchall()
cursor.execute("SELECT user_id FROM group_follow WHERE create_time LIKE '%%%%%s%%%%'" % numtime)
new_user_data = cursor.fetchall()
topic_data = list(topic_data)
new_user_data = list(new_user_data)
user_id = []
for i in topic_data:
user_id.append(i)
for i in new_user_data:
user_id.append(i)
print("Database version : %s " % user_id)
db.close()
return user_id
def get_topic_data(numtime):
db = pymysql.connect(host="rm-2ze5k2we69904787l.mysql.rds.aliyuncs.com", user='work', passwd='Gengmei123',
db="alpha", port=3306)
cursor = db.cursor()
print("---------")
cursor.execute("SELECT user_id,id FROM topic WHERE create_time LIKE '%%%%%s%%%%'" % numtime)
data = cursor.fetchall()
user_id = list(data)
print("Database version : %s " % user_id)
db.close()
return user_id
if __name__ == "__main__":
numtime = time_conv(0)
user_id = get_topic_new_user(numtime)
for j in user_id:
id = int(j[0])
follow_num = random.randint(1,2)
for i in range(follow_num):
# time.sleep(random.randint(500, 1500))
cookies=login()
follow(cookies, id)
user_id = get_topic_data(numtime)
for j in user_id:
id = int(j[0])
follow_num = random.randint(1,10)
for i in range(follow_num):
# time.sleep(random.randint(500, 1500))
cookies = login()
pick(cookies, id)
# 1.当天发帖:[1-2]个粉丝
# 0.当日加组的用户:[1-2」个粉丝
# 0.当天:[1-10]个pick
\ No newline at end of file
......@@ -4,29 +4,17 @@ import datetime
import pymysql
import random
cookies = {
"sessionid": '6',
}
s = requests.session()
s.keep_alive = False
requests.adapters.DEFAULT_RETRIES = 5
auto_follow_url = "http://earth.igengmei.com/api/v1/follow"
login_url = "http://earth.igengmei.com/api/account/login_pwd"
def index_first():
r1=requests.get(login_url)
return r1.cookies.get_dict()
def login():
time.sleep(random.randint(300, 500))
# time.sleep(random.randint(300, 500))
num_majia = random.randint(1, 300)
......@@ -93,7 +81,6 @@ def get_data(numtime):
db.close()
return user_id
#(0-1)
def get_commnet_id(numtime):
db = pymysql.connect(host="rm-2ze5k2we69904787l.mysql.rds.aliyuncs.com", user='work', passwd='Gengmei123',
......@@ -143,36 +130,37 @@ def get_commnet_id(numtime):
return user_id
if __name__ == "__main__":
time_list = [1, 2, 7, 30,5]
time_list = [1,2,3,4,5,6,7,11]
for i in range(len(time_list)):
for i in time_list:
if time_list[i] ==5:
if time_list[i] != 11:
numtime = time_conv(time_list[1])
numtime = time_conv(i)
user_id = get_commnet_id(numtime)
user_id = get_data(numtime)
for j in user_id:
id = int(j[0])
num_cishu = random.randint(0,1)
follow_num = random.randint(1,2)
for i in range(num_cishu):
for i in range(follow_num):
# time.sleep(random.randint(500, 1500))
cookies=login()
follow(cookies, id)
time.sleep(random.randint(2000,2500))
# time.sleep(random.randint(2000,2500))
else:
numtime = time_conv(time_list[i])
numtime = time_conv(1)
user_id = get_data(numtime)
......@@ -180,15 +168,17 @@ if __name__ == "__main__":
id = int(j[0])
num_cishu = random.randint(1,2)
follow_num = random.randint(0,1)
# time.sleep(random.randint(500, 1500))
for i in range(num_cishu):
for i in range(follow_num):
cookies = login()
follow(cookies, id)
time.sleep(random.randint(2000, 3000))
# time.sleep(random.randint(2000, 3000))
......
......@@ -4,7 +4,7 @@ import datetime
import pymysql
import random
auto_click_url = "http://earth.igengmei.com/api/v1/pick/do_pick"
auto_pick_url = "http://earth.igengmei.com/api/v1/pick/do_pick"
login_url = "http://earth.igengmei.com/api/account/login_pwd"
......@@ -47,18 +47,19 @@ def login():
return {'sessionid': cook}
def pick(cookies_get,id,content):
def pick(cookies_get,id):
post_dict={
'pick_user_id':id,
'is_pick':1,
'pick_type':0
}
response=requests.get(url=auto_click_url,
response=requests.post(url=auto_pick_url,
cookies=cookies_get,
data=post_dict)
print(response.text, 'url')
print(response.headers)
print(response.text, 'url')
def time_conv(numtime):
......@@ -68,7 +69,6 @@ def time_conv(numtime):
print(now)
return yes_time_str
def get_data(numtime):
db = pymysql.connect(host="rm-2ze5k2we69904787l.mysql.rds.aliyuncs.com", user='work', passwd='Gengmei123', db="alpha", port=3306)
......@@ -89,7 +89,6 @@ def get_data(numtime):
return user_id
def get_new_user_id(numtime):
db = pymysql.connect(host="rm-2ze5k2we69904787l.mysql.rds.aliyuncs.com", user='work', passwd='Gengmei123',
......@@ -112,14 +111,34 @@ def get_new_user_id(numtime):
return user_id
def get_star_useid(numtime):
db = pymysql.connect(host="rm-2ze5k2we69904787l.mysql.rds.aliyuncs.com", user='work', passwd='Gengmei123',
db="alpha", port=3306)
cursor = db.cursor()
cursor.execute(
"SELECT user_id FROM topic WHERE content_level =4 or content_level =5 and create_time LIKE '%%%%%s%%%%'" % numtime)
data = cursor.fetchall()
user_id = list(data)
print("Database version : %s " % user_id)
db.close()
return user_id
if __name__ == "__main__":
time_list = [1, 3 ,4]
time_list = [1,2,3,4,5,6,7]
for i in range(2):
#topic
numtime = time_conv(time_list[i])
for i in time_list:
numtime = time_conv(i)
user_id = get_data(numtime)
......@@ -127,31 +146,64 @@ if __name__ == "__main__":
id = int(j[0])
num_cishu = random.randint(1,2)
# time.sleep(random.randint(200,500))
pick_num = random.randint(1, 2)
for i in range(num_cishu):
for i in range(pick_num):
cookies=login()
pick(cookies, id)
time.sleep(random.randint(3000, 5000))
# time.sleep(random.randint(500, 1000))
#star
for i in time_list:
numtime = time_conv(i)
user_id = get_star_useid(numtime)
for j in user_id:
id = int(j[0])
# time.sleep(random.randint(200,500))
pick_num=random.randint(1,5)
for i in range(pick_num):
cookies = login()
pick(cookies, id)
# time.sleep(random.randint(500, 1000))
for i in time_list:
if i == 1:
numtime = time_conv(1)
new_user_id =get_new_user_id(1)
topic_user_id = get_data(numtime)
new_user_id=get_new_user_id(numtime)
tie_user_id = get_data(1)
for i in new_user_id:
for j in tie_user_id:
for j in topic_user_id:
if i == j :
cookies=login(cookies,user=cookies,pwd='')
pick_num = random.randint(0,1)
pick(cookies, id)
for x in range(pick_num):
cookies = login()
pick(cookies, i)
......@@ -3,18 +3,12 @@ import time
import datetime
import pymysql
import random
import pandas as pd
cookies = {
"sessionid": '1',
}
s = requests.session()
s.keep_alive = False
requests.adapters.DEFAULT_RETRIES = 5
# s = requests.session()
#
# s.keep_alive = False
#
# requests.adapters.DEFAULT_RETRIES = 5
auto_follow_url = "http://earth.igengmei.com/api/v1/follow"
......@@ -22,28 +16,26 @@ auto_click_url = "http://earth.igengmei.com/api/v1/like"
login_url = "http://earth.igengmei.com/api/account/login_pwd"
auto_urge_url = "http://earth.igengmei.com/api/v1/user/urge"
auto_click_url = "http://earth.igengmei.com/api/v1/pick/do_pick"
def index_first():
r1=requests.get(login_url)
return r1.cookies.get_dict()
def login():
return r1.cookies.get_dict()
# time.sleep(random.randint(300, 700))
def login(cookies,user,pwd):
num_majia = random.randint(1, 300)
# time.sleep(random.randint(300, 500))
cookies = index_first()
maj = random.randint(1, 300)
# user_id=majia[num]
# user_id=majia[maj]
user = 's_PzFznI@shadow.com'
pwd = '123456'
cookies = index_first()
post_dict={
'account_type':2,
'pwd':pwd,
......@@ -63,9 +55,12 @@ def login():
print(response.text, 'url')
print(cook)
return {'sessionid': cook}
def dz(cookies_get, id):
def click(cookies_get, id):
post_dict = {
'type': 1,
'id': id
......@@ -87,56 +82,27 @@ def follow(cookies_get, id):
print(response.text, 'url')
def Urge(cookies_get, id):
post_dict = {
'id': id
}
response = requests.post(url=auto_urge_url,
cookies=cookies_get,
data=post_dict)
print(response.text, 'url')
def pick(cookies_get,id):
post_dict={
'pick_user_id':id,
'is_pick':1,
'pick_type':0
}
response=requests.get(url=auto_click_url,
cookies=cookies_get,
data=post_dict)
print(response.text, 'url')
def time_conv(numtime):
now = datetime.datetime.now()
yes_time = now - datetime.timedelta(days=numtime)
yes_time_str = yes_time.strftime('%Y-%m-%d')
print(now)
return yes_time_str
def get_star_userid(numtime):
def get_star_user_id(numtime):
db = pymysql.connect(host="rm-2ze5k2we69904787l.mysql.rds.aliyuncs.com", user='work', passwd='Gengmei123',
db="alpha", port=3306)
cursor = db.cursor()
print("---------")
cursor.execute(
"SELECT user_id FROM topic WHERE content_level =4 or content_level =5 and create_time LIKE '%%%%%s%%%%'" % numtime)
data = cursor.fetchall()
user_id = list(data)
print("Database version : %s " % user_id)
db.close()
return user_id
def get_star_tieid(numtime):
def get_star_topic_id(numtime):
db = pymysql.connect(host="rm-2ze5k2we69904787l.mysql.rds.aliyuncs.com", user='work', passwd='Gengmei123',
db="alpha", port=3306)
......@@ -155,62 +121,43 @@ def get_star_tieid(numtime):
return user_id
if __name__ == "__main__":
time_list = [1, 3, 7,10]
for num in time_list:
numtime = time_conv(1)
numtime = time_conv(num)
topic_id = get_star_topic_id(numtime)
if num == 1:
for j in topic_id:
user_id = get_star_tieid(numtime)
id = int(j[0])
for i in user_id:
# time.sleep(random.randint(200,500))
num_cishu = random.randint(1, 5)
urge_num = random.randint(0, 1)
for j in range(num_cishu):
cookies=login()
dz(cookies, id)
elif num==3 or num == 7:
user_id = get_star_tieid(numtime)
for i in user_id:
num_cishu = random.randint(1, 2)
for j in range(num_cishu):
for i in range(urge_num):
cookies = login()
dz(cookies, id)
else:
user_id=get_star_userid(numtime)
click(cookies, id)
for i in user_id:
# time.sleep(random.randint(500, 1000))
num_cishu = random.randint(1, 5)
user_id = get_star_user_id(numtime)
for j in range(num_cishu):
for j in user_id:
cookies = login()
follow(cookies, id)
id = int(j[0])
Urge(cookies,id)
# time.sleep(random.randint(200,500))
pick(cookies,id)
urge_num = random.randint(1,2)
for i in range(urge_num):
cookies = login()
follow(cookies,id)
# time.sleep(random.randint(500, 1000))
......@@ -5,28 +5,15 @@ import pymysql
import random
import pandas as pd
cookies = {
"sessionid": '6',
}
s = requests.session()
s.keep_alive = False
requests.adapters.DEFAULT_RETRIES = 5
auto_urge_url = "http://earth.igengmei.com/api/v1/user/urge"
login_url = "http://earth.igengmei.com/api/account/login_pwd"
def index_first():
r1=requests.get(login_url)
return r1.cookies.get_dict()
def login():
num_majia = random.randint(1, 300)
......@@ -60,10 +47,9 @@ def login():
return {'sessionid': cook}
def Urge(cookies_get, id,comment):
def Urge(cookies_get, id):
post_dict = {
'id': id,
'comment':comment
'id': id
}
response = requests.post(url=auto_urge_url,
cookies=cookies_get,
......@@ -96,14 +82,32 @@ def get_data(numtime):
return user_id
def get_star_useid(numtime):
db = pymysql.connect(host="rm-2ze5k2we69904787l.mysql.rds.aliyuncs.com", user='work', passwd='Gengmei123',
db="alpha", port=3306)
cursor = db.cursor()
cursor.execute(
"SELECT user_id FROM topic WHERE content_level =4 or content_level =5 and create_time LIKE '%%%%%s%%%%'" % numtime)
data = cursor.fetchall()
user_id = list(data)
print("Database version : %s " % user_id)
db.close()
return user_id
if __name__ == "__main__":
time_list = [1, 3,7]
time_list = [1,2,3,4,5,6,7]
for i in range(len(time_list)):
for i in time_list:
numtime = time_conv(time_list[i])
numtime = time_conv(i)
user_id = get_data(numtime)
......@@ -111,27 +115,35 @@ if __name__ == "__main__":
id = int(j[0])
time.sleep(random.randint(200,500))
# time.sleep(random.randint(200,500))
num_cishu = random.randint(0, 2)
urge_num = random.randint(0, 2)
if num_cishu == 0 and time_list[i]==1:
for i in range(urge_num):
pass
cookies=login()
elif num_cishu == 1 :
Urge(cookies, id)
login()
# time.sleep(random.randint(500, 1000))
Urge(cookies, id)
else:
for i in time_list:
for i in range(num_cishu):
numtime = time_conv(i)
cookies=login()
user_id = get_star_useid(numtime)
Urge(cookies, id)
for j in user_id:
id = int(j[0])
time.sleep(random.randint(2000, 3000))
# time.sleep(random.randint(200,500))
for i in range(1):
cookies = login()
Urge(cookies, id)
# time.sleep(random.randint(500, 1000))
\ No newline at end of file
#
#
# import pandas as pd
#
# data=[(1, 1), (3, 1), (5, 241406349), (258, 241406352), (259, 1543475229), (260, 1543290924),
# (261, 1543290924), (262, 1543575727), (263, 1543575727), (264, 241406387), (265, 241406387),
# (266, 1543291223), (267, 1543290924), (268, 1543290924), (269, 1543290924), (270, 1543291223),
# (271, 1543291223), (272, 1543291223), (273, 1543291223), (274, 1543291223), (275, 1543291223),
# (276, 1543482718), (277, 1543482718), (278, 1543291223), (279, 1543482718), (280, 1543482718),
# (281, 1543482718), (282, 241406349), (283, 1543482718), (284, 241406397), (285, 1543291223),
# (286, 2018113010044082), (287, 2018113010044082), (288, 1542943961), (289, 1542943961),
# (290, 1543388936), (291, 1543388936), (292, 1542943961), (293, 1543388936), (294, 1543291223),
# (295, 1543291223), (296, 1543482718), (297, 1543482718), (298, 1543291223), (299, 1543291223),
# (300, 1543475229), (301, 1543482718), (302, 1543221193), (303, 241406399),
# (304, 1543475229), (305, 241406398), (306, 241406398), (307, 1543475229), (308, 241406356),
# (309, 1543290924), (310, 1543290924), (311, 1543290924), (312, 5), (313, 1543290924), (314, 1543291223),
# (315, 1543291223), (316, 1543475229), (317, 1543291223), (318, 1543475229), (319, 1543290924),
# (320, 1543291223), (321, 1543291223), (322, 1543291223), (323, 241406385), (324, 241406385),
# (325, 6), (326, 241406385), (327, 241406385), (328, 1542943961), (329, 241406397), (330, 1543291223),
# (331, 1542943961), (332, 1542943961), (333, 1543291223), (334, 1542943961), (335, 1543291223)
# (336, 1543291223), (337, 1542943961), (338, 1543291223), (339, 1543290924), (340, 1542943961),
# (341, 1542943961), (342, 1543290924), (343, 1543291223), (344, 1543290924), (345, 1543290924),
# (346, 1543291223), (347, 1543291223), (348, 1542943961), (349, 1542943961), (350, 1543290924),
# (351, 1543290924), (352, 1543290924), (353, 1543290924), (354, 1542943961), (355, 1542943961),
# (356, 1542943961), (357, 1542943961), (358, 1542943961), (359, 1542943961), (360, 1542943961), (361, 1542943961), (362, 1542943961), (363, 241406349), (364, 241406349), (365, 1543290924), (366, 1543291223), (367, 1543291223), (368, 1543291223), (369, 1543291223), (370, 1543291223), (371, 1543291223), (372, 1543290924), (373, 1543290924), (374, 1543290924), (375, 1543290924), (376, 1543290924), (377, 1543290924), (378, 1543290924), (379, 241406414), (380, 1543290924), (381, 1543290924), (382, 1543291223), (383, 1543291223), (384, 1543291223), (385, 1543291223), (386, 1543291223), (387, 1543290924), (388, 1543290924)]
#
#
# dict={}
#
# for i in data:
# if i[1] not in dict.keys():
# dict.setdefault(i[1],[])
# dict[i[1]].append(i[0])
#
# else:
# dict[i[1]].append(i[0])
import random
list={"key":[259, 300, 304, 307, 316, 318]}
for key,value in list.items():
rand_num = random.randint(0, len(value) - 1)
rand_id = value[rand_num]
print(rand_id)
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