Commit c8ee123e authored by lixiaofang's avatar lixiaofang

add

parent e81c4e73
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<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_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_every_day.py" beforeDir="false" afterPath="$PROJECT_DIR$/auto_every_day.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" afterPath="$PROJECT_DIR$/auto_follow_majia.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_follow_one.py" beforeDir="false" afterPath="$PROJECT_DIR$/auto_follow_one.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/auto_lunch_app.py" beforeDir="false" afterPath="$PROJECT_DIR$/auto_lunch_app.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/auto_star_topic.py" beforeDir="false" afterPath="$PROJECT_DIR$/auto_star_topic.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/auto_star_urge.py" beforeDir="false" afterPath="$PROJECT_DIR$/auto_star_urge.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/auto_urge.py" beforeDir="false" afterPath="$PROJECT_DIR$/auto_urge.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/auto_urge_three.py" beforeDir="false" afterPath="$PROJECT_DIR$/auto_urge_three.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/~$comment.xlsx" beforeDir="false" />
</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" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
...@@ -24,7 +40,7 @@ ...@@ -24,7 +40,7 @@
<entry key="batch_user_gen" value="2" /> <entry key="batch_user_gen" value="2" />
<entry key="comment" value="2" /> <entry key="comment" value="2" />
<entry key="guanshui" value="2" /> <entry key="guanshui" value="2" />
<entry key="py" value="128" /> <entry key="py" value="143" />
<entry key="txt" value="5" /> <entry key="txt" value="5" />
<entry key="xuqiu" value="2" /> <entry key="xuqiu" value="2" />
</counts> </counts>
...@@ -32,7 +48,7 @@ ...@@ -32,7 +48,7 @@
<usages-collector id="statistics.file.types.open"> <usages-collector id="statistics.file.types.open">
<counts> <counts>
<entry key="PLAIN_TEXT" value="13" /> <entry key="PLAIN_TEXT" value="13" />
<entry key="Python" value="128" /> <entry key="Python" value="143" />
</counts> </counts>
</usages-collector> </usages-collector>
<usages-collector id="statistics.file.extensions.edit"> <usages-collector id="statistics.file.extensions.edit">
...@@ -40,14 +56,14 @@ ...@@ -40,14 +56,14 @@
<entry key="comment" value="59" /> <entry key="comment" value="59" />
<entry key="dummy" value="6" /> <entry key="dummy" value="6" />
<entry key="guanshui" value="2" /> <entry key="guanshui" value="2" />
<entry key="py" value="4270" /> <entry key="py" value="4781" />
<entry key="xuqiu" value="223" /> <entry key="xuqiu" value="223" />
</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="290" /> <entry key="PLAIN_TEXT" value="290" />
<entry key="Python" value="4270" /> <entry key="Python" value="4781" />
</counts> </counts>
</usages-collector> </usages-collector>
</session> </session>
...@@ -114,68 +130,88 @@ ...@@ -114,68 +130,88 @@
</session> </session>
</component> </component>
<component name="FileEditorManager"> <component name="FileEditorManager">
<splitter split-orientation="horizontal" split-proportion="0.64908123"> <splitter split-orientation="horizontal" split-proportion="0.62032646">
<split-first> <split-first>
<leaf> <leaf>
<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_urge_three.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-11"> <state relative-caret-position="828">
<caret line="7" column="22" selection-start-line="7" selection-end-line="8" /> <caret line="61" column="45" selection-start-line="61" selection-start-column="45" selection-end-line="61" selection-end-column="45" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<marker date="1555731978000" expanded="true" signature="1181:1554" ph="..." />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/instant.py"> <entry file="file://$PROJECT_DIR$/auto_lunch_app.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="105"> <state relative-caret-position="359">
<caret line="7" selection-start-line="7" selection-end-line="7" selection-end-column="26" /> <caret line="24" column="24" selection-start-line="24" selection-start-column="24" selection-end-line="24" selection-end-column="24" />
<folding>
<element signature="e#0#15#0" expanded="true" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/auto_user_id.py"> <entry file="file://$PROJECT_DIR$/auto_follow_one.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state> <state relative-caret-position="548">
<caret lean-forward="true" /> <caret line="57" selection-start-line="57" selection-end-line="57" />
<folding> <folding>
<element signature="e#1#15#0" expanded="true" /> <element signature="e#0#15#0" expanded="true" />
</folding> </folding>
</state> </state>
</provider> </provider>
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/auto_click.py"> <entry file="file://$PROJECT_DIR$/auto_follow.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="420"> <state relative-caret-position="239">
<caret line="28" column="8" lean-forward="true" selection-start-line="28" selection-start-column="8" selection-end-line="28" selection-end-column="8" /> <caret line="23" column="26" lean-forward="true" selection-start-line="23" selection-start-column="26" selection-end-line="23" selection-end-column="26" />
<folding> <folding>
<element signature="e#0#11#0" expanded="true" /> <element signature="e#0#15#0" expanded="true" />
</folding> </folding>
</state> </state>
</provider> </provider>
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/auto_request.py"> <entry file="file://$PROJECT_DIR$/auto_urge.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="312"> <state relative-caret-position="656">
<caret line="151" column="4" selection-start-line="151" selection-start-column="4" selection-end-line="151" selection-end-column="4" /> <caret line="56" lean-forward="true" selection-start-line="56" selection-end-line="56" />
<folding> <folding>
<element signature="e#0#15#0" expanded="true" /> <element signature="e#0#15#0" expanded="true" />
<marker date="1555731978000" expanded="true" signature="1117:1661" ph="..." />
</folding> </folding>
</state> </state>
</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$/auto_commnet.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="548"> <state relative-caret-position="315">
<caret line="68" column="29" lean-forward="true" selection-start-line="68" selection-start-column="29" selection-end-line="68" selection-end-column="29" /> <caret line="21" column="33" lean-forward="true" selection-start-line="21" selection-start-column="33" selection-end-line="21" selection-end-column="33" />
<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_follow_new.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-30">
<caret line="76" column="29" selection-start-line="76" selection-start-column="29" selection-end-line="76" selection-end-column="29" />
<folding> <folding>
<element signature="e#0#15#0" expanded="true" /> <element signature="e#0#15#0" expanded="true" />
</folding> </folding>
...@@ -184,19 +220,34 @@ ...@@ -184,19 +220,34 @@
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/user_session.txt"> <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="1020"> <state relative-caret-position="36">
<caret line="68" column="33" selection-start-line="68" selection-end-line="69" /> <caret line="12" column="2" selection-start-line="12" selection-start-column="2" selection-end-line="12" selection-end-column="2" />
<folding>
<element signature="e#0#15#0" expanded="true" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/auto_click_n.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="735"> <state relative-caret-position="310">
<caret line="49" lean-forward="true" selection-start-line="49" selection-end-line="49" /> <caret line="162" column="22" lean-forward="true" selection-start-line="162" selection-start-column="22" selection-end-line="162" selection-end-column="22" />
<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_at_once.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="240">
<caret line="16" column="28" lean-forward="true" selection-start-line="16" selection-start-column="28" selection-end-line="16" selection-end-column="28" />
<folding> <folding>
<element signature="e#0#15#0" expanded="true" /> <element signature="e#0#15#0" expanded="true" />
</folding> </folding>
...@@ -211,15 +262,28 @@ ...@@ -211,15 +262,28 @@
<file pinned="false" current-in-tab="true"> <file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/offline_comment.py"> <entry file="file://$PROJECT_DIR$/offline_comment.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="90"> <state relative-caret-position="373">
<caret line="6" column="56" selection-start-line="6" selection-start-column="56" selection-end-line="6" selection-end-column="56" /> <caret line="57" column="43" lean-forward="true" selection-start-line="53" selection-start-column="8" selection-end-line="57" selection-end-column="43" />
<folding> <folding>
<element signature="e#0#15#0" expanded="true" />
<marker date="1555673023000" expanded="true" signature="1693:1694" ph="..." /> <marker date="1555673023000" expanded="true" signature="1693:1694" ph="..." />
</folding> </folding>
</state> </state>
</provider> </provider>
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/instant.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1305">
<caret line="87" column="49" lean-forward="true" selection-start-line="87" selection-start-column="12" selection-end-line="87" selection-end-column="49" />
<folding>
<element signature="e#0#15#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
</leaf> </leaf>
</split-second> </split-second>
</splitter> </splitter>
...@@ -275,17 +339,6 @@ ...@@ -275,17 +339,6 @@
<option value="$PROJECT_DIR$/mysql_config.py" /> <option value="$PROJECT_DIR$/mysql_config.py" />
<option value="$PROJECT_DIR$/test.py" /> <option value="$PROJECT_DIR$/test.py" />
<option value="$PROJECT_DIR$/offline)comment.py" /> <option value="$PROJECT_DIR$/offline)comment.py" />
<option value="$PROJECT_DIR$/auto_click_n.py" />
<option value="$PROJECT_DIR$/auto_star_urge.py" />
<option value="$PROJECT_DIR$/auto_star_topic.py" />
<option value="$PROJECT_DIR$/auto_follow_new.py" />
<option value="$PROJECT_DIR$/auto_follow_majia.py" />
<option value="$PROJECT_DIR$/auto_urge.py" />
<option value="$PROJECT_DIR$/auto_urge_three.py" />
<option value="$PROJECT_DIR$/auto_every_day.py" />
<option value="$PROJECT_DIR$/auto_follow.py" />
<option value="$PROJECT_DIR$/auto_lunch_app.py" />
<option value="$PROJECT_DIR$/auto_follow_one.py" />
<option value="$PROJECT_DIR$/epp_scripts/tasks.py" /> <option value="$PROJECT_DIR$/epp_scripts/tasks.py" />
<option value="$PROJECT_DIR$/epp_scripts/test1.py" /> <option value="$PROJECT_DIR$/epp_scripts/test1.py" />
<option value="$PROJECT_DIR$/epp_scripts/test2.py" /> <option value="$PROJECT_DIR$/epp_scripts/test2.py" />
...@@ -295,22 +348,32 @@ ...@@ -295,22 +348,32 @@
<option value="$PROJECT_DIR$/epp_scripts/celery_task_router.py" /> <option value="$PROJECT_DIR$/epp_scripts/celery_task_router.py" />
<option value="$PROJECT_DIR$/tasks/auto_at_once.py" /> <option value="$PROJECT_DIR$/tasks/auto_at_once.py" />
<option value="$PROJECT_DIR$/_celery.py" /> <option value="$PROJECT_DIR$/_celery.py" />
<option value="$PROJECT_DIR$/auto_at_once.py" />
<option value="$PROJECT_DIR$/comment.txt" /> <option value="$PROJECT_DIR$/comment.txt" />
<option value="$PROJECT_DIR$/auto_user_id.py" /> <option value="$PROJECT_DIR$/auto_user_id.py" />
<option value="$PROJECT_DIR$/auto_click.py" />
<option value="$PROJECT_DIR$/instant.py" /> <option value="$PROJECT_DIR$/instant.py" />
<option value="$PROJECT_DIR$/auto_request.py" /> <option value="$PROJECT_DIR$/auto_request.py" />
<option value="$PROJECT_DIR$/auto_at_once.py" />
<option value="$PROJECT_DIR$/offline_comment.py" /> <option value="$PROJECT_DIR$/offline_comment.py" />
<option value="$PROJECT_DIR$/auto_click_n.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_follow.py" />
<option value="$PROJECT_DIR$/auto_every_day.py" />
<option value="$PROJECT_DIR$/auto_urge.py" />
<option value="$PROJECT_DIR$/auto_urge_three.py" />
<option value="$PROJECT_DIR$/auto_star_urge.py" />
<option value="$PROJECT_DIR$/auto_star_topic.py" />
<option value="$PROJECT_DIR$/auto_lunch_app.py" />
<option value="$PROJECT_DIR$/auto_follow_one.py" />
<option value="$PROJECT_DIR$/auto_follow_new.py" />
<option value="$PROJECT_DIR$/auto_follow_majia.py" />
</list> </list>
</option> </option>
</component> </component>
<component name="ProjectFrameBounds" extendedState="6"> <component name="ProjectFrameBounds" extendedState="1">
<option name="x" value="-322" /> <option name="y" value="23" />
<option name="y" value="-1080" />
<option name="width" value="1920" /> <option name="width" value="1920" />
<option name="height" value="1080" /> <option name="height" value="724" />
</component> </component>
<component name="ProjectView"> <component name="ProjectView">
<navigator proportions="" version="1"> <navigator proportions="" version="1">
...@@ -520,12 +583,12 @@ ...@@ -520,12 +583,12 @@
<servers /> <servers />
</component> </component>
<component name="ToolWindowManager"> <component name="ToolWindowManager">
<frame x="-322" y="-1080" width="1920" height="1080" extended-state="6" /> <frame x="0" y="23" width="1920" height="724" extended-state="1" />
<editor active="true" /> <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" />
<window_info content_ui="combo" id="Project" order="2" sideWeight="0.7872763" visible="true" weight="0.111637704" /> <window_info active="true" content_ui="combo" id="Project" order="2" sideWeight="0.7872763" visible="true" weight="0.15060559" />
<window_info id="DB Browser" order="3" /> <window_info id="DB Browser" order="3" />
<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.3284974" /> <window_info anchor="bottom" id="Find" order="1" weight="0.3284974" />
...@@ -535,7 +598,7 @@ ...@@ -535,7 +598,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.002072539" /> <window_info anchor="bottom" id="Terminal" order="8" weight="0.0032786885" />
<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" />
...@@ -546,17 +609,17 @@ ...@@ -546,17 +609,17 @@
<layout-to-restore> <layout-to-restore>
<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" />
<window_info content_ui="combo" id="Project" order="2" sideWeight="0.7872763" visible="true" weight="0.14639284" /> <window_info active="true" content_ui="combo" id="Project" order="2" sideWeight="0.7872763" visible="true" weight="0.111637704" />
<window_info id="DB Browser" order="3" /> <window_info id="DB Browser" order="3" />
<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.32909092" /> <window_info anchor="bottom" id="Find" order="1" weight="0.3284974" />
<window_info active="true" anchor="bottom" id="Run" order="2" visible="true" weight="0.46830985" /> <window_info anchor="bottom" id="Run" order="2" weight="0.3295082" />
<window_info anchor="bottom" id="Debug" order="3" weight="0.56363636" /> <window_info anchor="bottom" id="Debug" order="3" weight="0.56363636" />
<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 active="true" anchor="bottom" id="Terminal" order="8" visible="true" weight="0.022797927" /> <window_info anchor="bottom" id="Terminal" order="8" visible="true" weight="0.0032786885" />
<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" />
...@@ -586,11 +649,6 @@ ...@@ -586,11 +649,6 @@
<line>13</line> <line>13</line>
<option name="timeStamp" value="5" /> <option name="timeStamp" value="5" />
</line-breakpoint> </line-breakpoint>
<line-breakpoint enabled="true" suspend="THREAD" type="python-line">
<url>file://$PROJECT_DIR$/auto_star_topic.py</url>
<line>13</line>
<option name="timeStamp" value="6" />
</line-breakpoint>
<line-breakpoint enabled="true" suspend="THREAD" type="python-line"> <line-breakpoint enabled="true" suspend="THREAD" type="python-line">
<url>file://$PROJECT_DIR$/auto_urge.py</url> <url>file://$PROJECT_DIR$/auto_urge.py</url>
<option name="timeStamp" value="7" /> <option name="timeStamp" value="7" />
...@@ -699,56 +757,6 @@ ...@@ -699,56 +757,6 @@
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/auto_star_topic.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="90">
<caret line="11" selection-start-line="11" selection-end-line="11" />
<folding>
<element signature="e#0#15#0" expanded="true" />
</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="150">
<caret line="10" selection-start-line="10" selection-end-line="10" />
<folding>
<element signature="e#0#15#0" expanded="true" />
</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="120">
<caret line="11" selection-start-line="11" selection-end-line="11" />
<folding>
<element signature="e#0#15#0" expanded="true" />
</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="150">
<caret line="10" selection-start-line="10" selection-end-line="10" />
<folding>
<element signature="e#0#15#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/auto_follow_one.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="165">
<caret line="11" selection-start-line="11" selection-end-line="11" />
<folding>
<element signature="e#0#15#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/epp_scripts/test2.py"> <entry file="file://$PROJECT_DIR$/epp_scripts/test2.py">
<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="300">
...@@ -818,141 +826,200 @@ ...@@ -818,141 +826,200 @@
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/auto_urge.py"> <entry file="file://$PROJECT_DIR$/comment.txt">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="180"> <state relative-caret-position="910">
<caret line="12" selection-start-line="12" selection-end-line="12" /> <caret line="1932" column="5" selection-start-line="1932" selection-start-column="5" selection-end-line="1932" selection-end-column="5" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/user_id.txt">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/user_session.txt">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1020">
<caret line="68" column="33" selection-start-line="68" selection-end-line="69" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/auto_click.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="189">
<caret line="17" column="29" selection-start-line="17" selection-start-column="29" selection-end-line="17" selection-end-column="29" />
<folding>
<element signature="e#0#11#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/auto_click_n.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="588">
<caret line="44" column="27" selection-start-line="44" selection-start-column="27" selection-end-line="44" selection-end-column="27" />
<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_star_urge.py"> <entry file="file://$PROJECT_DIR$/auto_commnet.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="195"> <state relative-caret-position="360">
<caret line="13" selection-start-line="13" selection-end-line="13" /> <caret line="24" selection-start-line="24" selection-end-line="24" />
<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_follow.py"> <entry file="file://$PROJECT_DIR$/auto_every_day.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="582">
<caret line="11" selection-start-line="11" selection-end-line="11" /> <caret line="40" column="28" lean-forward="true" selection-start-line="40" selection-start-column="28" selection-end-line="40" selection-end-column="28" />
<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_urge_three.py"> <entry file="file://$PROJECT_DIR$/auto_user_id.py">
<provider selected="true" editor-type-id="text-editor">
<state>
<caret lean-forward="true" />
<folding>
<element signature="e#1#15#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/instant.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="1305">
<caret line="11" selection-start-line="11" selection-end-line="11" /> <caret line="87" column="49" lean-forward="true" selection-start-line="87" selection-start-column="12" selection-end-line="87" selection-end-column="49" />
<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_every_day.py"> <entry file="file://$PROJECT_DIR$/auto_star_urge.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="150"> <state relative-caret-position="788">
<caret line="10" selection-start-line="10" selection-end-line="10" /> <caret line="60" selection-start-line="60" selection-end-line="60" />
<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$/comment.txt"> <entry file="file://$PROJECT_DIR$/auto_urge_three.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="910"> <state relative-caret-position="828">
<caret line="1932" column="5" selection-start-line="1932" selection-start-column="5" selection-end-line="1932" selection-end-column="5" /> <caret line="61" column="45" selection-start-line="61" selection-start-column="45" selection-end-line="61" selection-end-column="45" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<marker date="1555731978000" expanded="true" signature="1181:1554" ph="..." />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/user_id.txt"> <entry file="file://$PROJECT_DIR$/auto_urge.py">
<provider selected="true" editor-type-id="text-editor" /> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="656">
<caret line="56" lean-forward="true" selection-start-line="56" selection-end-line="56" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<marker date="1555731978000" expanded="true" signature="1117:1661" ph="..." />
</folding>
</state>
</provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/auto_click.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="420"> <state relative-caret-position="310">
<caret line="28" column="8" lean-forward="true" selection-start-line="28" selection-start-column="8" selection-end-line="28" selection-end-column="8" /> <caret line="162" column="22" lean-forward="true" selection-start-line="162" selection-start-column="22" selection-end-line="162" selection-end-column="22" />
<folding> <folding>
<element signature="e#0#11#0" expanded="true" /> <element signature="e#0#15#0" expanded="true" />
</folding> </folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/user_session.txt"> <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="1020"> <state relative-caret-position="315">
<caret line="68" column="33" selection-start-line="68" selection-end-line="69" /> <caret line="21" column="33" lean-forward="true" selection-start-line="21" selection-start-column="33" selection-end-line="21" selection-end-column="33" />
<folding>
<element signature="e#0#15#0" expanded="true" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/auto_click_n.py"> <entry file="file://$PROJECT_DIR$/auto_lunch_app.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="735"> <state relative-caret-position="359">
<caret line="49" lean-forward="true" selection-start-line="49" selection-end-line="49" /> <caret line="24" column="24" selection-start-line="24" selection-start-column="24" selection-end-line="24" selection-end-column="24" />
<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_at_once.py"> <entry file="file://$PROJECT_DIR$/auto_follow_one.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-11"> <state relative-caret-position="548">
<caret line="7" column="22" selection-start-line="7" selection-end-line="8" /> <caret line="57" selection-start-line="57" selection-end-line="57" />
<folding>
<element signature="e#0#15#0" expanded="true" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/offline_comment.py"> <entry file="file://$PROJECT_DIR$/offline_comment.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="90"> <state relative-caret-position="373">
<caret line="6" column="56" selection-start-line="6" selection-start-column="56" selection-end-line="6" selection-end-column="56" /> <caret line="57" column="43" lean-forward="true" selection-start-line="53" selection-start-column="8" selection-end-line="57" selection-end-column="43" />
<folding> <folding>
<element signature="e#0#15#0" expanded="true" />
<marker date="1555673023000" expanded="true" signature="1693:1694" ph="..." /> <marker date="1555673023000" expanded="true" signature="1693:1694" ph="..." />
</folding> </folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/auto_user_id.py"> <entry file="file://$PROJECT_DIR$/auto_follow_new.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state> <state relative-caret-position="-30">
<caret lean-forward="true" /> <caret line="76" column="29" selection-start-line="76" selection-start-column="29" selection-end-line="76" selection-end-column="29" />
<folding> <folding>
<element signature="e#1#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$/instant.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="105"> <state relative-caret-position="36">
<caret line="7" selection-start-line="7" selection-end-line="7" selection-end-column="26" /> <caret line="12" column="2" selection-start-line="12" selection-start-column="2" selection-end-line="12" selection-end-column="2" />
<folding>
<element signature="e#0#15#0" expanded="true" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/auto_request.py"> <entry file="file://$PROJECT_DIR$/auto_follow.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="312"> <state relative-caret-position="239">
<caret line="151" column="4" selection-start-line="151" selection-start-column="4" selection-end-line="151" selection-end-column="4" /> <caret line="23" column="26" lean-forward="true" selection-start-line="23" selection-start-column="26" selection-end-line="23" selection-end-column="26" />
<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_commnet.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="548"> <state relative-caret-position="240">
<caret line="68" column="29" lean-forward="true" selection-start-line="68" selection-start-column="29" selection-end-line="68" selection-end-column="29" /> <caret line="16" column="28" lean-forward="true" selection-start-line="16" selection-start-column="28" selection-end-line="16" selection-end-column="28" />
<folding> <folding>
<element signature="e#0#15#0" expanded="true" /> <element signature="e#0#15#0" expanded="true" />
</folding> </folding>
......
...@@ -7,7 +7,7 @@ import pandas as pd ...@@ -7,7 +7,7 @@ import pandas as pd
import traceback import traceback
from log_settings import * from log_settings import *
import logging import logging
from auto_request import login, reply, click, get_comments, time_conv from auto_request import login, reply, click, get_comments, time_conv,get_user_id
from auto_request import host, user, port, db, passwd from auto_request import host, user, port, db, passwd
...@@ -16,13 +16,21 @@ def get_topic_id(numtime): ...@@ -16,13 +16,21 @@ def get_topic_id(numtime):
pc = pymysql.connect(host=host, user=user, passwd=passwd, db=db, port=port) pc = pymysql.connect(host=host, user=user, passwd=passwd, db=db, port=port)
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 user_id in (select user_id from user_extra where is_shadow = 0)", "SELECT user_id ,id FROM topic WHERE is_online =1 and create_time >= %s",
(numtime)) (numtime))
data = cursor.fetchall() data = cursor.fetchall()
user_id = list(data) topic_id = list(data)
logging.info("Database version : %s " % user_id)
user_list = get_user_id()
topic_id_list = []
if topic_id:
for i in topic_id:
if int(i[1]) not in user_list:
topic_id_list.append(i)
logging.info("Database version : %s " % topic_id_list)
pc.close() pc.close()
return user_id return topic_id_list
except: except:
logging.error("catch exception,get_data:%s" % traceback.format_exc()) logging.error("catch exception,get_data:%s" % traceback.format_exc())
return None return None
......
...@@ -4,7 +4,7 @@ import random ...@@ -4,7 +4,7 @@ import random
import traceback import traceback
from log_settings import * from log_settings import *
import logging import logging
from auto_request import login, click, time_convs from auto_request import login, click, time_convs,get_user_id
from auto_request import host, user, port, db, passwd from auto_request import host, user, port, db, passwd
...@@ -13,12 +13,19 @@ def get_data(numtime): ...@@ -13,12 +13,19 @@ def get_data(numtime):
pc = pymysql.connect(host=host, user=user, passwd=passwd, db=db, port=port) pc = pymysql.connect(host=host, user=user, passwd=passwd, db=db, port=port)
cursor = pc.cursor() cursor = pc.cursor()
cursor.execute( cursor.execute(
"SELECT distinct(user_id),id FROM topic WHERE is_online=1 and create_time LIKE '%%%%%s%%%%' and user_id in (select user_id from user_extra where is_shadow = 0)" % numtime) "SELECT user_id , id FROM topic WHERE is_online=1 and create_time LIKE '%%%%%s%%%%'" % numtime)
data = cursor.fetchall() data = cursor.fetchall()
user_id = list(data) topic_id = list(data)
logging.info("Database version : %s " % user_id) user_list = get_user_id()
topic_id_list = []
if topic_id:
for i in topic_id:
if int(i[1]) in user_list:
topic_id_list.append(i)
logging.info("Database version : %s " % topic_id_list)
pc.close() pc.close()
return user_id return topic_id_list
except: except:
logging.error("catch exception,get_data:%s" % traceback.format_exc()) logging.error("catch exception,get_data:%s" % traceback.format_exc())
return None return None
...@@ -67,4 +74,3 @@ if __name__ == "__main__": ...@@ -67,4 +74,3 @@ if __name__ == "__main__":
except: except:
logging.error("catch exception,main:%s" % traceback.format_exc()) logging.error("catch exception,main:%s" % traceback.format_exc())
# 2. 每日一次轮询,昨、2、3、4、5、6、7日新增帖的用户:[0-1]个马甲点赞。每天每人最多一个帖子点赞,不要100个帖子都0-1。
...@@ -5,7 +5,7 @@ import pymysql ...@@ -5,7 +5,7 @@ import pymysql
import random import random
import traceback import traceback
import logging import logging
from auto_request import login, click, time_convs from auto_request import login, click, time_convs, get_user_id
from auto_request import host, user, port, db, passwd from auto_request import host, user, port, db, passwd
...@@ -15,12 +15,20 @@ def get_data(numtime): ...@@ -15,12 +15,20 @@ def get_data(numtime):
cursor = pc.cursor() cursor = pc.cursor()
cursor.execute( cursor.execute(
"SELECT user_id,id FROM topic WHERE is_online=1 and create_time LIKE '%%%%%s%%%%' and user_id in (select user_id from user_extra where is_shadow = 0)" % numtime) "SELECT user_id,id FROM topic WHERE is_online=1 and create_time LIKE '%%%%%s%%%%' " % numtime)
data = cursor.fetchall() data = cursor.fetchall()
user_id = list(data) topic_id = list(data)
logging.info("Database version : %s " % user_id) user_list = get_user_id()
topic_id_list = []
if topic_id:
for i in topic_id:
if int(i[1]) in user_list:
topic_id_list.append(i)
logging.info("Database version : %s " % topic_id_list)
pc.close() pc.close()
return user_id return topic_id_list
except: except:
logging.error("catch exception,get_data:%s" % traceback.format_exc()) logging.error("catch exception,get_data:%s" % traceback.format_exc())
return None return None
......
...@@ -16,8 +16,8 @@ def get_topic_id(numtime): ...@@ -16,8 +16,8 @@ def get_topic_id(numtime):
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 LIKE '%%%%%s%%%%' " % numtime "SELECT user_id,id FROM topic WHERE is_online=1 and create_time LIKE '%%%%%s%%%%' " % numtime
"select id,user_id from topic where user_id = 241529801 or id = 241529809" # "select id,user_id from topic where user_id = 241529801 or id = 241529809"
) )
data = cursor.fetchall() data = cursor.fetchall()
topic_id = list(data) topic_id = list(data)
...@@ -67,7 +67,7 @@ if __name__ == "__main__": ...@@ -67,7 +67,7 @@ if __name__ == "__main__":
comment = get_comment() comment = get_comment()
logging.info("get comment:%s"%comment) logging.info("get comment:%s" % comment)
for key, value in dicts.items(): for key, value in dicts.items():
...@@ -86,7 +86,6 @@ if __name__ == "__main__": ...@@ -86,7 +86,6 @@ if __name__ == "__main__":
print(cook) print(cook)
if cook is not None: if cook is not None:
reply(cook, id, comment) reply(cook, id, comment)
time.sleep(300) time.sleep(300)
......
...@@ -6,7 +6,7 @@ import random ...@@ -6,7 +6,7 @@ import random
import traceback import traceback
from log_settings import * from log_settings import *
import logging import logging
from auto_request import login, time_convs, follow from auto_request import login, time_convs, follow, get_user_id
from auto_request import host, user, port, db, passwd from auto_request import host, user, port, db, passwd
...@@ -15,22 +15,30 @@ def get_topic_new_user(numtime): ...@@ -15,22 +15,30 @@ def get_topic_new_user(numtime):
pc = pymysql.connect(host=host, user=user, passwd=passwd, db=db, port=port) pc = pymysql.connect(host=host, user=user, passwd=passwd, db=db, port=port)
cursor = pc.cursor() cursor = pc.cursor()
cursor.execute( cursor.execute(
"SELECT distinct(user_id) FROM topic WHERE is_online=1 and create_time LIKE '%%%%%s%%%%' and user_id in (select user_id from user_extra where is_shadow = 0)" % numtime) "SELECT distinct(user_id) FROM topic WHERE is_online=1 and create_time LIKE '%%%%%s%%%%' " % numtime)
topic_data = cursor.fetchall() topic_data = cursor.fetchall()
cursor.execute( cursor.execute(
"SELECT distinct(user_id) FROM group_user_role WHERE create_time LIKE '%%%%%s%%%%' and user_id in (select user_id from user_extra where is_shadow = 0)" % numtime) "SELECT distinct(user_id) FROM group_user_role WHERE create_time LIKE '%%%%%s%%%%'" % numtime)
new_user_data = cursor.fetchall() new_user_data = cursor.fetchall()
topic_data = list(topic_data) topic_data = list(topic_data)
new_user_data = list(new_user_data) new_user_data = list(new_user_data)
user_id = []
for i in topic_data: user_list = get_user_id()
user_id.append(i) topic_id_list = []
for i in new_user_data: if topic_data:
user_id.append(i) for i in topic_data:
logging.info("Database version : %s " % user_id) if int(i) in user_list:
topic_id_list.append(i)
if new_user_data:
for i in new_user_data:
if i in user_list:
topic_id_list.append(i)
logging.info("Database version : %s " % topic_id_list)
pc.close() pc.close()
return user_id return topic_id_list
except: except:
logging.error("catch exception,get_data:%s" % traceback.format_exc()) logging.error("catch exception,get_data:%s" % traceback.format_exc())
return None return None
...@@ -58,7 +66,5 @@ if __name__ == "__main__": ...@@ -58,7 +66,5 @@ if __name__ == "__main__":
if cookies is not None: if cookies is not None:
follow(cookies, id) follow(cookies, id)
time.sleep(300)
except: except:
logging.error("catch exception,main:%s" % traceback.format_exc()) logging.error("catch exception,main:%s" % traceback.format_exc())
...@@ -6,7 +6,7 @@ import random ...@@ -6,7 +6,7 @@ import random
import traceback import traceback
from log_settings import * from log_settings import *
import logging import logging
from auto_request import login, time_convs, follow from auto_request import login, time_convs, follow,get_user_id
from auto_request import host, user, port, db, passwd from auto_request import host, user, port, db, passwd
...@@ -16,12 +16,20 @@ def get_data(numtime): ...@@ -16,12 +16,20 @@ def get_data(numtime):
pc = pymysql.connect(host=host, user=user, passwd=passwd, db=db, port=port) pc = pymysql.connect(host=host, user=user, passwd=passwd, db=db, port=port)
cursor = pc.cursor() cursor = pc.cursor()
cursor.execute( cursor.execute(
"SELECT distinct(user_id) FROM topic WHERE is_online=1 and create_time LIKE '%%%%%s%%%%' and user_id in (select user_id from user_extra where is_shadow = 0)" % numtime) "SELECT distinct(user_id) FROM topic WHERE is_online=1 and create_time LIKE '%%%%%s%%%%'" % numtime)
data = cursor.fetchall() data = cursor.fetchall()
user_id = list(data) user_id = list(data)
logging.info("Database version : %s " % user_id)
user_list = get_user_id()
topic_id_list = []
if user_id:
for i in user_id:
if int(i[1]) in user_list:
topic_id_list.append(i)
logging.info("Database version : %s " % topic_id_list)
pc.close() pc.close()
return user_id return topic_id_list
except: except:
logging.error("catch exception,get_data:%s" % traceback.format_exc()) logging.error("catch exception,get_data:%s" % traceback.format_exc())
return None return None
......
...@@ -10,6 +10,7 @@ import logging ...@@ -10,6 +10,7 @@ import logging
from auto_request import login, time_conv, follow from auto_request import login, time_conv, follow
from auto_request import host, user, port, db, passwd from auto_request import host, user, port, db, passwd
##做不了
def get_follw_majia(numtime): def get_follw_majia(numtime):
try: try:
......
...@@ -6,17 +6,16 @@ import random ...@@ -6,17 +6,16 @@ import random
import traceback import traceback
from log_settings import * from log_settings import *
import logging import logging
from auto_request import login, time_convs, follow from auto_request import login, time_convs, follow, get_user_id
from auto_request import host, user, port, db, passwd from auto_request import host, user, port, db, passwd
def get_commnet_id(numtime): def get_commnet_id(numtime):
pc = pymysql.connect(host=host, user=user, passwd=passwd, db=db, port=port) pc = pymysql.connect(host=host, user=user, passwd=passwd, db=db, port=port)
cursor = pc.cursor() cursor = pc.cursor()
cursor.execute( cursor.execute(
"SELECT user_id FROM reply WHERE create_time LIKE '%%%%%s%%%%' and user_id in (select user_id from user_extra where is_shadow = 0)" % numtime) "SELECT user_id FROM reply WHERE create_time LIKE '%%%%%s%%%%' " % numtime)
data_comment = cursor.fetchall() data_comment = cursor.fetchall()
...@@ -34,13 +33,13 @@ def get_commnet_id(numtime): ...@@ -34,13 +33,13 @@ def get_commnet_id(numtime):
cursor.execute( cursor.execute(
"SELECT user_id FROM group_user_role WHERE create_time LIKE '%%%%%s%%%%' and user_id in (select user_id from user_extra where is_shadow = 0)" % numtime) "SELECT user_id FROM group_user_role WHERE create_time LIKE '%%%%%s%%%%' " % numtime)
data_group_follow = cursor.fetchall() data_group_follow = cursor.fetchall()
cursor.execute( cursor.execute(
"select user_id from account_user WHERE create_time LIKE '%%%%%s%%%%' and user_id in (select user_id from user_extra where is_shadow = 0)" % numtime) "select user_id from account_user WHERE create_time LIKE '%%%%%s%%%%'" % numtime)
data_new_user = cursor.fetchall() data_new_user = cursor.fetchall()
...@@ -50,23 +49,33 @@ def get_commnet_id(numtime): ...@@ -50,23 +49,33 @@ def get_commnet_id(numtime):
data3_id = list(data_new_user) data3_id = list(data_new_user)
data_reply_reply = list(data_reply_reply) data_reply_reply = list(data_reply_reply)
user_list = get_user_id()
user_id = [] user_id = []
for i in data_id: for i in data_id:
if i[0] is not None: if i[0] is not None:
user_id.append(i) if int(i[0]) not in user_list:
user_id.append(i)
for i in data1_id: for i in data1_id:
if i[0] is not None: if i[0] is not None:
user_id.append(i) if int(i[0]) not in user_list:
user_id.append(i)
for i in data2_id: for i in data2_id:
if i[0] is not None: if i[0] is not None:
user_id.append(i) if int(i[0]) not in user_list:
user_id.append(i)
for i in data3_id: for i in data3_id:
if i[0] is not None: if i[0] is not None:
user_id.append(i) if int(i[0]) not in user_list:
user_id.append(i)
for i in data_reply_reply: for i in data_reply_reply:
if i[0] is not None: if i[0] is not None:
user_id.append(i) if int(i[0]) not in user_list:
user_id.append(i)
logging.info("Database version : %s " % user_id) logging.info("Database version : %s " % user_id)
......
...@@ -6,32 +6,42 @@ import random ...@@ -6,32 +6,42 @@ import random
import traceback import traceback
from log_settings import * from log_settings import *
import logging import logging
from auto_request import login, time_conv, follow,get_cookies from auto_request import login, time_conv, follow, get_cookies, get_user_id
from auto_request import host, user, port, db, passwd from auto_request import host, user, port, db, passwd
def get_data(numtime): def get_data(numtime):
try: try:
pc = pymysql.connect(host=host, user=user, passwd=passwd, db=db, port=port) pc = pymysql.connect(host=host, user=user, passwd=passwd, db=db, port=port)
cursor = pc.cursor() cursor = pc.cursor()
cursor.execute("select distinct(user_id) from account_user_auth where user_id not in (select user_id from pv_maidian where page_name ='home' and partiton_date >= %s ) and user_id in (select user_id from user_extra where is_shadow = 0)" ,(numtime)) cursor.execute(
"select distinct(user_id) from account_user_auth where user_id not in (select user_id from pv_maidian where page_name ='home' and partiton_date >= %s )",
(numtime))
data = cursor.fetchall() data = cursor.fetchall()
user_id = list(data) user_id = list(data)
logging.info("Database version : %s " % user_id)
user_list = get_user_id()
topic_id_list = []
if user_id:
for i in user_id:
if int(i) not in user_list:
topic_id_list.append(i)
logging.info("Database version : %s " % topic_id_list)
pc.close() pc.close()
return user_id return topic_id_list
except: except:
logging.error("catch exception,get_data:%s" % traceback.format_exc()) logging.error("catch exception,get_data:%s" % traceback.format_exc())
return None return None
if __name__ == "__main__": if __name__ == "__main__":
try: try:
numtime = time_conv(3) numtime = time_conv(3)
user_id = get_data(numtime) user_id = get_data(numtime)
urge_num = random.randint(1,2) urge_num = random.randint(1, 2)
for j in range(urge_num): for j in range(urge_num):
...@@ -41,17 +51,10 @@ if __name__ == "__main__": ...@@ -41,17 +51,10 @@ if __name__ == "__main__":
time.sleep(random.randint(10, 40)) time.sleep(random.randint(10, 40))
cook=login() cook = login()
if cook is not None: if cook is not None:
follow(cook, i) follow(cook, i)
time.sleep(300)
except: except:
logging.error("catch exception,main:%s" % traceback.format_exc()) logging.error("catch exception,main:%s" % traceback.format_exc())
...@@ -6,9 +6,8 @@ import random ...@@ -6,9 +6,8 @@ import random
import traceback import traceback
from log_settings import * from log_settings import *
import logging import logging
from auto_request import login, time_convs,follow from auto_request import login, time_convs, follow, get_user_id
from auto_request import host,user,port,db,passwd from auto_request import host, user, port, db, passwd
def get_data(numtime): def get_data(numtime):
...@@ -16,12 +15,18 @@ def get_data(numtime): ...@@ -16,12 +15,18 @@ def get_data(numtime):
pc = pymysql.connect(host=host, user=user, passwd=passwd, db=db, port=port) pc = pymysql.connect(host=host, user=user, passwd=passwd, db=db, port=port)
cursor = pc.cursor() cursor = pc.cursor()
cursor.execute( cursor.execute(
"select distinct(user_id) from pv_maidian where page_name ='home' and partiton_date like '%%%%%s%%%%' and user_id in (select user_id from user_extra where is_shadow = 0)" % numtime) "select distinct(user_id) from pv_maidian where page_name ='home' and partiton_date like '%%%%%s%%%%'" % numtime)
data = cursor.fetchall() data = cursor.fetchall()
user_id = list(data) user_id = list(data)
logging.pcinfo("Database version : %s " % user_id) user_list = get_user_id()
topic_id_list = []
if user_id:
for i in user_id:
if int(i) not in user_list:
topic_id_list.append(i)
logging.pcinfo("Database version : %s " % topic_id_list)
pc.close() pc.close()
return user_id return topic_id_list
except: except:
logging.error("catch exception,get_data:%s" % traceback.format_exc()) logging.error("catch exception,get_data:%s" % traceback.format_exc())
return None return None
...@@ -35,17 +40,11 @@ if __name__ == "__main__": ...@@ -35,17 +40,11 @@ if __name__ == "__main__":
urge_num = random.randint(0, 1) urge_num = random.randint(0, 1)
for j in range(urge_num): for j in range(urge_num):
for i in user_id: for i in user_id:
id = int(i[0]) id = int(i[0])
time.sleep(random.randint(10, 30))
time.sleep(random.randint(1, 10))
cook = login() cook = login()
if cook is not None: if cook is not None:
follow(cook, id) follow(cook, id)
time.sleep(300)
except: except:
logging.error("catch exception,main:%s" % traceback.format_exc()) logging.error("catch exception,main:%s" % traceback.format_exc())
...@@ -6,38 +6,29 @@ import random ...@@ -6,38 +6,29 @@ import random
import traceback import traceback
from log_settings import * from log_settings import *
import logging import logging
from auto_request import login, time_conv, follow,click from auto_request import login, time_conv, follow, click, get_user_id
from auto_request import host, user, port, db, passwd from auto_request import host, user, port, db, passwd
def get_star_user_id(numtime): def get_star_user_id(numtime):
try: try:
pc = pymysql.connect(host=host, user=user, passwd=passwd, db=db, port=port) pc = pymysql.connect(host=host, user=user, passwd=passwd, db=db, port=port)
cursor = pc.cursor() cursor = pc.cursor()
cursor.execute( cursor.execute(
"SELECT user_id FROM topic WHERE is_online=1 and (content_level =4 or content_level =5) and create_time LIKE '%%%%%s%%%%' and user_id in (select user_id from user_extra where is_shadow = 0)" % numtime) "SELECT user_id,id FROM topic WHERE is_online=1 and (content_level =4 or content_level =5) and create_time LIKE '%%%%%s%%%%' " % numtime)
data = cursor.fetchall() data = cursor.fetchall()
user_id = list(data) user_id = list(data)
logging.info("Database version : %s " % user_id)
pc.close()
return user_id
except:
logging.error("catch exception,get_data:%s" % traceback.format_exc())
return None
user_list = get_user_id()
topic_id_list = []
if user_id:
for i in user_id:
if int(i[0]) not in user_list:
topic_id_list.append(i)
def get_star_topic_id(numtime): logging.info("Database version : %s " % topic_id_list)
try:
pc = pymysql.connect(host=host, user=user, passwd=passwd, db=db, port=port)
cursor = pc.cursor()
cursor.execute(
"SELECT id FROM topic WHERE is_online=1 and (content_level =4 or content_level =5) and create_time LIKE '%%%%%s%%%%'" % numtime)
data = cursor.fetchall()
topic_id = list(data)
logging.info("Database version : %s " % user_id)
pc.close() pc.close()
return topic_id return topic_id_list
except: except:
logging.error("catch exception,get_data:%s" % traceback.format_exc()) logging.error("catch exception,get_data:%s" % traceback.format_exc())
return None return None
...@@ -52,11 +43,11 @@ if __name__ == "__main__": ...@@ -52,11 +43,11 @@ if __name__ == "__main__":
numtime = time_conv(i) numtime = time_conv(i)
topic_id = get_star_topic_id(numtime) user_topic_id = get_star_user_id(numtime)
for j in topic_id: for j in user_topic_id:
id = int(j[0]) id = int(j[1])
urge_num = random.randint(0, 1) urge_num = random.randint(0, 1)
...@@ -84,20 +75,9 @@ if __name__ == "__main__": ...@@ -84,20 +75,9 @@ if __name__ == "__main__":
cookies = login() cookies = login()
if cookies is not None: if cookies is not None:
follow(cookies, id) follow(cookies, id)
time.sleep(300)
except: except:
logging.error("catch exception,main:%s" % traceback.format_exc()) logging.error("catch exception,main:%s" % traceback.format_exc())
#每日一次轮询,昨、2、3、4、5、6、7日被选为4、5星的帖子:[0-1]个马甲点赞。
#每日一次轮询,昨日有帖子被选为4、5星的用户:[1-2]个粉丝
\ No newline at end of file
...@@ -7,23 +7,29 @@ import pandas as pd ...@@ -7,23 +7,29 @@ import pandas as pd
import traceback import traceback
from log_settings import * from log_settings import *
import logging import logging
from auto_request import login, time_conv, Urge from auto_request import login, time_conv, Urge, get_user_id
from auto_request import host, user, port, db, passwd from auto_request import host, user, port, db, passwd
def get_star_useid(numtime): def get_star_useid(numtime):
try: try:
pc = pymysql.connect(host=host, user=user, passwd=passwd, db=db, port=port) pc = pymysql.connect(host=host, user=user, passwd=passwd, db=db, port=port)
cursor = pc.cursor() cursor = pc.cursor()
cursor.execute( cursor.execute(
"SELECT distinct(user_id) FROM topic WHERE is_online=1 and (content_level =4 or content_level =5) and create_time LIKE '%%%%%s%%%%' and user_id in (select user_id from user_extra where is_shadow = 0)" % numtime) "SELECT distinct(user_id) FROM topic WHERE is_online=1 and (content_level =4 or content_level =5) and create_time LIKE '%%%%%s%%%%'" % numtime)
data = cursor.fetchall() data = cursor.fetchall()
user_id = list(data) user_id = list(data)
logging.info("Database version : %s " % user_id)
user_list = get_user_id()
topic_id_list = []
if user_id:
for i in user_id:
if int(i) not in user_list:
topic_id_list.append(i)
logging.info("Database version : %s " % topic_id_list)
pc.close() pc.close()
return user_id return topic_id_list
except: except:
logging.error("catch exception,get_data:%s" % traceback.format_exc()) logging.error("catch exception,get_data:%s" % traceback.format_exc())
...@@ -33,7 +39,7 @@ def get_star_useid(numtime): ...@@ -33,7 +39,7 @@ def get_star_useid(numtime):
if __name__ == "__main__": if __name__ == "__main__":
try: try:
time_list = [1,2,3,4,5,6,7] time_list = [1, 2, 3, 4, 5, 6, 7]
for i in time_list: for i in time_list:
......
...@@ -7,21 +7,30 @@ import pandas as pd ...@@ -7,21 +7,30 @@ import pandas as pd
import traceback import traceback
from log_settings import * from log_settings import *
import logging import logging
from auto_request import login, time_conv, Urge from auto_request import login, time_conv, Urge, get_user_id
from auto_request import host, user, port, db, passwd from auto_request import host, user, port, db, passwd
import threading
def get_data(numtime): def get_data(numtime):
try: try:
pc = pymysql.connect(host=host, user=user, passwd=passwd, db=db, port=port) pc = pymysql.connect(host=host, user=user, passwd=passwd, db=db, port=port)
cursor = pc.cursor() cursor = pc.cursor()
cursor.execute("SELECT distinct(user_id) FROM topic WHERE is_online=1 and create_time LIKE '%%%%%s%%%%' and user_id in (select user_id from user_extra where is_shadow = 0)" % numtime) cursor.execute(
"SELECT distinct(user_id) FROM topic WHERE is_online=1 and create_time LIKE '%%%%%s%%%%'" % numtime)
data = cursor.fetchall() data = cursor.fetchall()
user_id = list(data) user_id = list(data)
logging.info("Database version : %s " % user_id)
user_list = get_user_id()
topic_id_list = []
if user_id:
for i in user_id:
if int(i) not in user_list:
topic_id_list.append(i)
logging.info("Database version : %s " % topic_id_list)
pc.close() pc.close()
return user_id return topic_id_list
except: except:
logging.error("catch exception,get_data:%s" % traceback.format_exc()) logging.error("catch exception,get_data:%s" % traceback.format_exc())
return None return None
...@@ -30,30 +39,34 @@ def get_data(numtime): ...@@ -30,30 +39,34 @@ def get_data(numtime):
if __name__ == "__main__": if __name__ == "__main__":
try: try:
time_list = [1,2,3,4,5,6,7] def urge_user():
time_list = [1, 2, 3, 4, 5, 6, 7]
for i in time_list: for i in time_list:
numtime = time_conv(i) numtime = time_conv(i)
user_id = get_data(numtime) user_id = get_data(numtime)
urge_num = random.randint(0, 2) urge_num = random.randint(0, 2)
for i in range(urge_num): for i in range(urge_num):
for j in user_id: for j in user_id:
id = int(j[0]) id = int(j[0])
time.sleep(random.randint(3, 10)) time.sleep(random.randint(10, 50))
cookies=login() cookies = login()
if cookies is not None: if cookies is not None:
Urge(cookies, id)
Urge(cookies, id)
time.sleep(300) sleep_time = random.randint(300, 540)
timer = threading.Timer(1, urge_user) # 首次启动
timer.start()
except: except:
logging.error("catch exception,main:%s" % traceback.format_exc()) logging.error("catch exception,main:%s" % traceback.format_exc())
...@@ -6,8 +6,9 @@ import random ...@@ -6,8 +6,9 @@ import random
import traceback import traceback
from log_settings import * from log_settings import *
import logging import logging
import threading
from auto_request import login, time_conv, Urge from auto_request import login, time_conv, Urge, get_user_id
from auto_request import host, user, port, db, passwd from auto_request import host, user, port, db, passwd
...@@ -16,13 +17,21 @@ def get_data(numtime): ...@@ -16,13 +17,21 @@ def get_data(numtime):
pc = pymysql.connect(host=host, user=user, passwd=passwd, db=db, port=port) pc = pymysql.connect(host=host, user=user, passwd=passwd, db=db, port=port)
cursor = pc.cursor() cursor = pc.cursor()
cursor.execute( cursor.execute(
"select distinct(user_id) from account_user_auth where user_id not in (select user_id from pv_maidian where page_name ='home' and partiton_date >= %s) and user_id in (select user_id from user_extra where is_shadow = 0)", "select distinct(user_id) from account_user_auth where user_id not in (select user_id from pv_maidian where page_name ='home' and partiton_date >= %s)",
(numtime)) (numtime))
data = cursor.fetchall() data = cursor.fetchall()
user_id = list(data) user_id = list(data)
logging.info("Database version : %s " % user_id)
user_list = get_user_id()
topic_id_list = []
if user_id:
for i in user_id:
if int(i[1]) not in user_list:
topic_id_list.append(i)
logging.info("Database version : %s " % topic_id_list)
pc.close() pc.close()
return user_id return topic_id_list
except: except:
logging.error("catch exception,get_data:%s" % traceback.format_exc()) logging.error("catch exception,get_data:%s" % traceback.format_exc())
return None return None
...@@ -31,22 +40,29 @@ def get_data(numtime): ...@@ -31,22 +40,29 @@ def get_data(numtime):
if __name__ == "__main__": if __name__ == "__main__":
try: try:
numtime = time_conv(3)
user_id = get_data(numtime) def urge_user():
for j in range(2): numtime = time_conv(3)
for i in user_id: user_id = get_data(numtime)
for j in range(2):
for i in user_id:
time.sleep(random.randint(10, 15))
cook = login()
time.sleep(random.randint(10, 15)) if cook is not None:
Urge(cook, i)
cook = login()
if cook is not None: sleep_time = random.randint(300, 540)
Urge(cook, i) timer = threading.Timer(1, urge_user) # 首次启动
timer.start()
time.sleep(300)
except: except:
logging.error("catch exception,main:%s" % traceback.format_exc()) logging.error("catch exception,main:%s" % traceback.format_exc())
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment