Commit 5ca64ea2 authored by lixiaofang's avatar lixiaofang

hh

parent bc1af3dc
......@@ -2,7 +2,6 @@
<project version="4">
<component name="ChangeListManager">
<list default="true" id="fd1f0b61-1139-44e5-87e7-f8b86ff52376" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/auto_commnet.py" beforeDir="false" afterPath="$PROJECT_DIR$/auto_commnet.py" afterDir="false" />
</list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
......@@ -81,7 +80,7 @@
<entry key="comment" value="16" />
<entry key="cuigeng" value="1" />
<entry key="data" value="12" />
<entry key="py" value="2900" />
<entry key="py" value="2944" />
<entry key="unr_data" value="1" />
<entry key="xuqiu" value="1" />
</counts>
......@@ -89,17 +88,17 @@
<usages-collector id="statistics.file.types.edit">
<counts>
<entry key="PLAIN_TEXT" value="35" />
<entry key="Python" value="2900" />
<entry key="Python" value="2944" />
</counts>
</usages-collector>
</session>
</component>
<component name="FileEditorManager">
<leaf>
<file pinned="false" current-in-tab="true">
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/guanshui">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="446">
<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>
......@@ -108,25 +107,25 @@
<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="676">
<caret line="103" lean-forward="true" selection-start-line="103" selection-end-line="103" />
<state relative-caret-position="94">
<caret line="20" selection-start-line="20" selection-end-line="20" />
<folding>
<element signature="e#453#656#0" />
<element signature="e#672#904#0" />
<element signature="e#942#1113#0" />
<element signature="e#1134#1559#0" />
<marker date="1543905072000" expanded="true" signature="323:324" ph="..." />
<marker date="1543905072000" expanded="true" signature="323:325" ph="..." />
<marker date="1543905072000" expanded="false" signature="323:325" ph="..." />
</folding>
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<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="344">
<caret line="75" column="37" selection-start-line="75" selection-start-column="37" selection-end-line="75" selection-end-column="37" />
<state relative-caret-position="301">
<caret line="112" column="35" lean-forward="true" selection-start-line="112" selection-start-column="35" selection-end-line="112" selection-end-column="35" />
<folding>
<element signature="e#0#15#0" expanded="true" />
</folding>
......@@ -168,10 +167,10 @@
</option>
</component>
<component name="ProjectFrameBounds">
<option name="x" value="234" />
<option name="y" value="179" />
<option name="x" value="267" />
<option name="y" value="35" />
<option name="width" value="1280" />
<option name="height" value="651" />
<option name="height" value="624" />
</component>
<component name="ProjectView">
<navigator proportions="" version="1">
......@@ -251,10 +250,10 @@
<servers />
</component>
<component name="ToolWindowManager">
<frame x="234" y="179" width="1280" height="651" extended-state="0" />
<frame x="78" y="23" width="1280" height="624" extended-state="0" />
<editor active="true" />
<layout>
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.15806195" />
<window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.15806195" />
<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" />
......@@ -265,7 +264,7 @@
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
<window_info anchor="bottom" id="TODO" order="6" />
<window_info anchor="bottom" id="Version Control" order="7" show_stripe_button="false" />
<window_info anchor="bottom" id="Terminal" order="8" visible="true" weight="0.18783543" />
<window_info active="true" anchor="bottom" id="Terminal" order="8" visible="true" 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" />
......@@ -273,7 +272,7 @@
<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.15885623" />
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.15806195" />
<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" />
......@@ -284,7 +283,7 @@
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
<window_info anchor="bottom" id="TODO" order="6" />
<window_info anchor="bottom" id="Version Control" order="7" show_stripe_button="false" />
<window_info anchor="bottom" id="Terminal" order="8" weight="0.13910356" />
<window_info anchor="bottom" id="Terminal" order="8" visible="true" weight="0.18783543" />
<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" />
......@@ -456,37 +455,37 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/guanshui">
<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>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/auto_click.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="676">
<caret line="103" lean-forward="true" selection-start-line="103" selection-end-line="103" />
<state relative-caret-position="94">
<caret line="20" selection-start-line="20" selection-end-line="20" />
<folding>
<element signature="e#453#656#0" />
<element signature="e#672#904#0" />
<element signature="e#942#1113#0" />
<element signature="e#1134#1559#0" />
<marker date="1543905072000" expanded="true" signature="323:324" ph="..." />
<marker date="1543905072000" expanded="true" signature="323:325" ph="..." />
<marker date="1543905072000" expanded="false" signature="323:325" ph="..." />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/auto_commnet.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="344">
<caret line="75" column="37" selection-start-line="75" selection-start-column="37" selection-end-line="75" selection-end-column="37" />
<state relative-caret-position="301">
<caret line="112" column="35" lean-forward="true" selection-start-line="112" selection-start-column="35" selection-end-line="112" selection-end-column="35" />
<folding>
<element signature="e#0#15#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/guanshui">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="446">
<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>
</component>
</project>
\ No newline at end of file
......@@ -6,10 +6,6 @@ import random
import pandas as pd
cookies = {
"sessionid": '1',
}
auto_click_url = "http://earth.igengmei.com/api/v1/reply/create"
login_url = "http://earth.igengmei.com/api/account/login_pwd"
......@@ -34,8 +30,17 @@ def login(cookies,user,pwd):
data=post_dict,
cookies=cookies
)
headers=response.headers
cook = headers['Set-Cookie'].split(";")
cook = cook[0].split('=')[1]
print(response.text, 'url')
return cook
def reply(cookies_get,id,content):
post_dict={
......@@ -46,7 +51,7 @@ def reply(cookies_get,id,content):
cookies=cookies_get,
data=post_dict)
print(response.text, 'url')
print(response.text,'url')
def time_conv(numtime):
......@@ -103,13 +108,13 @@ if __name__ == "__main__":
time.sleep(random.randint(300,700))
num_majia = random.randint(0, 300)
num_majia = random.randint(1, 300)
#user_id=majia[num]
# cookies = index_first()
cookies = index_first()
# login(cookies,user=cookies,pwd='')
cookies=login(cookies,user=cookies,pwd='')
comment = get_comment()
......
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