Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cybertron
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpha
cybertron
Commits
3e7242b1
Commit
3e7242b1
authored
Dec 13, 2018
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update hj
parent
7be38d8c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
23 additions
and
183 deletions
+23
-183
workspace.xml
.idea/workspace.xml
+0
-0
auto_at_once.py
auto_at_once.py
+3
-12
auto_click.py
auto_click.py
+1
-13
auto_click_n.py
auto_click_n.py
+1
-13
auto_commnet.py
auto_commnet.py
+1
-13
auto_every_day.py
auto_every_day.py
+2
-11
auto_follow.py
auto_follow.py
+1
-13
auto_follow_majia.py
auto_follow_majia.py
+3
-14
auto_follow_new.py
auto_follow_new.py
+1
-13
auto_follow_one.py
auto_follow_one.py
+2
-16
auto_lunch_app.py
auto_lunch_app.py
+1
-9
auto_star_topic.py
auto_star_topic.py
+2
-14
auto_star_urge.py
auto_star_urge.py
+1
-13
auto_urge.py
auto_urge.py
+1
-13
auto_urge_three.py
auto_urge_three.py
+2
-14
batch_user_gen
batch_user_gen
+0
-0
test.py
test.py
+1
-2
No files found.
.idea/workspace.xml
View file @
3e7242b1
This diff is collapsed.
Click to expand it.
auto_at_once.py
View file @
3e7242b1
...
...
@@ -8,20 +8,11 @@ import traceback
from
log_settings
import
*
import
logging
auto_click_url
=
"http://earth.igengmei.com/api/v1/like"
auto_reply_url
=
"http://earth.igengmei.com/api/v1/reply/create"
auto_follow_url
=
"http://earth.igengmei.com/api/v1/follow"
login_url
=
"http://earth.igengmei.com/api/account/login_pwd"
auto_click_url
=
"http://earth.gmeiapp.com/api/v1/like"
auto_reply_url
=
"http://earth.gmeiapp.com/api/v1/reply/create"
auto_follow_url
=
"http://earth.gmeiapp.com/api/v1/follow"
def
index_first
():
try
:
r1
=
requests
.
get
(
login_url
)
return
r1
.
cookies
.
get_dict
()
except
:
logging
.
error
(
"index_first:
%
s"
%
traceback
.
format_exc
())
return
None
def
get_majia
():
...
...
auto_click.py
View file @
3e7242b1
...
...
@@ -7,19 +7,7 @@ import traceback
from
log_settings
import
*
import
logging
auto_click_url
=
"http://earth.igengmei.com/api/v1/like"
login_url
=
"http://earth.igengmei.com/api/account/login_pwd"
def
index_first
():
try
:
r1
=
requests
.
get
(
login_url
)
return
r1
.
cookies
.
get_dict
()
except
:
logging
.
error
(
"index_first:
%
s"
%
traceback
.
format_exc
())
return
None
auto_click_url
=
"http://earth.gmeiapp.com/api/v1/like"
def
get_majia
():
...
...
auto_click_n.py
View file @
3e7242b1
...
...
@@ -6,19 +6,7 @@ import random
import
traceback
from
log_settings
import
*
import
logging
auto_click_url
=
"http://earth.igengmei.com/api/v1/like"
login_url
=
"http://earth.igengmei.com/api/account/login_pwd"
def
index_first
():
try
:
r1
=
requests
.
get
(
login_url
)
return
r1
.
cookies
.
get_dict
()
except
:
logging
.
error
(
"index_first:
%
s"
%
traceback
.
format_exc
())
return
None
auto_click_url
=
"http://earth.gmeiapp.com/api/v1/like"
def
get_majia
():
...
...
auto_commnet.py
View file @
3e7242b1
...
...
@@ -8,20 +8,8 @@ import traceback
from
log_settings
import
*
import
logging
auto_reply_url
=
"http://earth.
igengmei
.com/api/v1/reply/create"
auto_reply_url
=
"http://earth.
gmeiapp
.com/api/v1/reply/create"
login_url
=
"http://earth.igengmei.com/api/account/login_pwd"
def
index_first
():
try
:
r1
=
requests
.
get
(
login_url
)
return
r1
.
cookies
.
get_dict
()
except
:
logging
.
error
(
"index_first:
%
s"
%
traceback
.
format_exc
())
return
None
def
get_majia
():
...
...
auto_every_day.py
View file @
3e7242b1
...
...
@@ -6,21 +6,12 @@ import random
import
traceback
from
log_settings
import
*
import
logging
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
"
auto_
follow_url
=
"http://earth.gmeiapp.com/api/v1/follow
"
def
index_first
():
try
:
r1
=
requests
.
get
(
login_url
)
return
r1
.
cookies
.
get_dict
()
except
:
auto_pick_url
=
"http://earth.gmeiapp.com/api/v1/pick/do_pick"
logging
.
error
(
"index_first:
%
s"
%
traceback
.
format_exc
())
return
None
def
get_majia
():
...
...
auto_follow.py
View file @
3e7242b1
...
...
@@ -6,19 +6,7 @@ import random
import
traceback
from
log_settings
import
*
import
logging
auto_follow_url
=
"http://earth.igengmei.com/api/v1/follow"
login_url
=
"http://earth.igengmei.com/api/account/login_pwd"
def
index_first
():
try
:
r1
=
requests
.
get
(
login_url
)
return
r1
.
cookies
.
get_dict
()
except
:
logging
.
error
(
"index_first:
%
s"
%
traceback
.
format_exc
())
return
None
auto_follow_url
=
"http://earth.gmeiapp.com/api/v1/follow"
def
get_majia
():
...
...
auto_follow_majia.py
View file @
3e7242b1
...
...
@@ -7,22 +7,11 @@ import pandas as pd
import
traceback
from
log_settings
import
*
import
logging
auto_click_url
=
"http://earth.igengmei.com/api/v1/like"
auto_reply_url
=
"http://earth.igengmei.com/api/v1/reply/create"
auto_follow_url
=
"http://earth.igengmei.com/api/v1/follow"
login_url
=
"http://earth.igengmei.com/api/account/login_pwd"
auto_click_url
=
"http://earth.gmeiapp.com/api/v1/like"
auto_reply_url
=
"http://earth.gmeiapp.com/api/v1/reply/create"
auto_follow_url
=
"http://earth.gmeiapp.com/api/v1/follow"
def
index_first
():
try
:
r1
=
requests
.
get
(
login_url
)
return
r1
.
cookies
.
get_dict
()
except
:
logging
.
error
(
"index_first:
%
s"
%
traceback
.
format_exc
())
return
None
def
get_cookies
(
user_id
):
try
:
...
...
auto_follow_new.py
View file @
3e7242b1
...
...
@@ -6,19 +6,7 @@ import random
import
traceback
from
log_settings
import
*
import
logging
auto_follow_url
=
"http://earth.igengmei.com/api/v1/follow"
login_url
=
"http://earth.igengmei.com/api/account/login_pwd"
def
index_first
():
try
:
r1
=
requests
.
get
(
login_url
)
return
r1
.
cookies
.
get_dict
()
except
:
logging
.
error
(
"index_first:
%
s"
%
traceback
.
format_exc
())
return
None
auto_follow_url
=
"http://earth.gmeiapp.com/api/v1/follow"
def
get_majia
():
...
...
auto_follow_one.py
View file @
3e7242b1
...
...
@@ -7,19 +7,7 @@ import traceback
from
log_settings
import
*
import
logging
auto_follow_url
=
"http://earth.igengmei.com/api/v1/follow"
login_url
=
"http://earth.igengmei.com/api/account/login_pwd"
def
index_first
():
try
:
r1
=
requests
.
get
(
login_url
)
return
r1
.
cookies
.
get_dict
()
except
:
logging
.
error
(
"index_first:
%
s"
%
traceback
.
format_exc
())
return
None
auto_follow_url
=
"http://earth.gmeiapp.com/api/v1/follow"
def
get_majia
():
...
...
@@ -107,9 +95,7 @@ def time_conv(numtime):
def
get_data
(
numtime
):
try
:
db
=
pymysql
.
connect
(
host
=
"rm-2zej7rzxnj036zxt3.mysql.rds.aliyuncs.com"
,
user
=
'work'
,
passwd
=
'oars152!traipseize738'
,
db
=
"alpha"
,
port
=
3306
)
db
=
pymysql
.
connect
(
host
=
"rm-2zej7rzxnj036zxt3.mysql.rds.aliyuncs.com"
,
user
=
'work'
,
passwd
=
'oars152!traipseize738'
,
db
=
"alpha"
,
port
=
3306
)
cursor
=
db
.
cursor
()
cursor
.
execute
(
"select 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
()
...
...
auto_lunch_app.py
View file @
3e7242b1
...
...
@@ -6,19 +6,11 @@ import random
import
traceback
from
log_settings
import
*
import
logging
login_url
=
"http://earth.igengmei.com/api/account/login_pwd"
auto_follow_url
=
"http://earth.igengmei.com/api/v1/follow"
def
index_first
():
try
:
r1
=
requests
.
get
(
login_url
)
return
r1
.
cookies
.
get_dict
()
except
:
auto_follow_url
=
"http://earth.gmeiapp.com/api/v1/follow"
logging
.
error
(
"index_first:
%
s"
%
traceback
.
format_exc
())
return
None
def
get_majia
():
...
...
auto_star_topic.py
View file @
3e7242b1
...
...
@@ -7,21 +7,9 @@ import traceback
from
log_settings
import
*
import
logging
auto_follow_url
=
"http://earth.
igengmei
.com/api/v1/follow"
auto_follow_url
=
"http://earth.
gmeiapp
.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
():
try
:
r1
=
requests
.
get
(
login_url
)
return
r1
.
cookies
.
get_dict
()
except
:
logging
.
error
(
"index_first:
%
s"
%
traceback
.
format_exc
())
return
None
auto_click_url
=
"http://earth.gmeiapp.com/api/v1/like"
def
get_majia
():
...
...
auto_star_urge.py
View file @
3e7242b1
...
...
@@ -7,19 +7,7 @@ import pandas as pd
import
traceback
from
log_settings
import
*
import
logging
auto_urge_url
=
"http://earth.igengmei.com/api/v1/user/urge"
login_url
=
"http://earth.igengmei.com/api/account/login_pwd"
def
index_first
():
try
:
r1
=
requests
.
get
(
login_url
)
return
r1
.
cookies
.
get_dict
()
except
:
logging
.
error
(
"index_first:
%
s"
%
traceback
.
format_exc
())
return
None
auto_urge_url
=
"http://earth.gmeiapp.com/api/v1/user/urge"
def
get_majia
():
...
...
auto_urge.py
View file @
3e7242b1
...
...
@@ -7,19 +7,7 @@ import pandas as pd
import
traceback
from
log_settings
import
*
import
logging
auto_urge_url
=
"http://earth.igengmei.com/api/v1/user/urge"
login_url
=
"http://earth.igengmei.com/api/account/login_pwd"
def
index_first
():
try
:
r1
=
requests
.
get
(
login_url
)
return
r1
.
cookies
.
get_dict
()
except
:
logging
.
error
(
"index_first:
%
s"
%
traceback
.
format_exc
())
return
None
auto_urge_url
=
"http://earth.gmeiapp.com/api/v1/user/urge"
def
get_majia
():
...
...
auto_urge_three.py
View file @
3e7242b1
...
...
@@ -7,19 +7,7 @@ import traceback
from
log_settings
import
*
import
logging
auto_urge_url
=
"http://earth.igengmei.com/api/v1/user/urge"
login_url
=
"http://earth.igengmei.com/api/account/login_pwd"
def
index_first
():
try
:
r1
=
requests
.
get
(
login_url
)
return
r1
.
cookies
.
get_dict
()
except
:
logging
.
error
(
"index_first:
%
s"
%
traceback
.
format_exc
())
return
None
auto_urge_url
=
"http://earth.gmeiapp.com/api/v1/user/urge"
def
get_majia
():
...
...
@@ -134,7 +122,7 @@ if __name__ == "__main__":
for
j
in
range
(
urge_num
):
time
.
sleep
(
random
.
randint
(
1
0
,
50
))
time
.
sleep
(
random
.
randint
(
1
,
15
))
cook
=
logins
()
...
...
batch_user_gen
View file @
3e7242b1
This diff is collapsed.
Click to expand it.
test.py
View file @
3e7242b1
...
...
@@ -7,9 +7,8 @@ import traceback
# from log_settings import *
import
logging
import
json
auto_urge_url
=
"http://earth.igengmei.com/api/v1/user/urge"
login_url
=
"http://earth.
igengmei
.com/api/account/login_pwd"
login_url
=
"http://earth.
gmeiapp
.com/api/account/login_pwd"
def
index_first
():
try
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment