Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
physical
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
钟尚武
physical
Commits
f578173f
Commit
f578173f
authored
Aug 19, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
time
parent
297c9dd6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
18 deletions
+3
-18
principal_offline_comment1.py
vest/pictorial/principal_offline_comment1.py
+2
-2
auto_request.py
vest/request/auto_request.py
+1
-16
No files found.
vest/pictorial/principal_offline_comment1.py
View file @
f578173f
...
...
@@ -28,13 +28,13 @@ def get_data():
def
principal_offline_comment1
():
try
:
logging
.
info
(
"comment offline pictorial"
)
user_id
=
get_data
()
dicts
=
{}
for
i
in
user_id
:
for
num
in
range
(
4
):
follow_num
=
random
.
randint
(
5
,
20
)
for
num
in
range
(
follow_num
):
majia_user_id
=
get_majia_reply
(
i
[
0
])
cook
=
logins
(
majia_user_id
)
comment
=
get_pictorial_comment
()
...
...
vest/request/auto_request.py
View file @
f578173f
...
...
@@ -42,21 +42,6 @@ auto_reply_url = "http://earth.iyanzhi.com/api/v1/reply/create"
auto_follow_url
=
"http://earth.iyanzhi.com/api/v1/follow"
auto_urge_url
=
"http://earth.iyanzhi.com/api/v1/user/urge"
DATABASES
=
{
'default'
:
{
'ENGINE'
:
'django.db.backends.mysql'
,
'NAME'
:
'alpha'
,
'USER'
:
'work'
,
'PASSWORD'
:
'oars152!traipseize738'
,
'HOST'
:
'172.17.40.136'
,
'PORT'
:
'3306'
,
'OPTIONS'
:
{
"init_command"
:
"SET foreign_key_checks = 0;"
,
"charset"
:
"utf8mb4"
,
}
}
}
host
=
DATABASES
[
'default'
][
'HOST'
]
user
=
DATABASES
[
'default'
][
'USER'
]
...
...
@@ -462,7 +447,7 @@ def pictorial_reply(cookies_get, id, content):
data
=
post_dict
)
logging
.
info
(
"response.text:
%
s"
%
response
.
text
)
get_error
(
response
.
text
,
"pictorial_reply"
,
id
)
get_error
(
response
.
text
,
"pictorial_reply"
,
id
)
except
:
logging
.
error
(
"catch exception,logins:
%
s"
%
traceback
.
format_exc
())
...
...
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