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
alpha
physical
Commits
af551d03
Commit
af551d03
authored
Oct 14, 2019
by
吴升宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
25d2fe8e
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
7 deletions
+13
-7
crontab.py
crontab.py
+9
-5
yesterday_topic_reply.py
vest/change_reply/yesterday_topic_reply.py
+1
-0
auto_click_per_2h_by_post.py
vest/click/auto_click_per_2h_by_post.py
+2
-2
principal_online_comment1.py
vest/pictorial/principal_online_comment1.py
+1
-0
No files found.
crontab.py
View file @
af551d03
...
@@ -4,11 +4,12 @@ ontime_list = [
...
@@ -4,11 +4,12 @@ ontime_list = [
"0 9 * * * source /srv/envs/physical/bin/activate && python /data/log/physical/app/crontab.py"
,
"0 9 * * * source /srv/envs/physical/bin/activate && python /data/log/physical/app/crontab.py"
,
"10 9 * * * source /srv/envs/physical/bin/activate && python /data/log/physical/app/crontabs.py"
,
"10 9 * * * source /srv/envs/physical/bin/activate && python /data/log/physical/app/crontabs.py"
,
"0 9 * * * sh /data/log/cybertron/app/statistics_query.sh > /data/log/cybertron/app/statistics_query.log"
,
"0 9 * * * sh /data/log/cybertron/app/statistics_query.sh > /data/log/cybertron/app/statistics_query.log"
,
"*/5 * * * * source /srv/envs/physical/bin/activate && cd /srv/apps/physical && python manage.py trans2es_mapping2es -m true_click_one"
,
"54 */2 * * * source /srv/envs/physical/bin/activate && cd /srv/apps/physical && python manage.py trans2es_mapping2es -m auto_click_per_2h_by_post"
,
"02,12,22,32,42,52 * * * * source /srv/envs/physical/bin/activate && cd /srv/apps/physical && python manage.py trans2es_mapping2es-m true_click_two"
,
# "*/5 * * * * source /srv/envs/physical/bin/activate && cd /srv/apps/physical && python manage.py trans2es_mapping2es -m true_click_one",
"00,10,20,30,40,50 * * * * source /srv/envs/physical/bin/activate && cd /srv/apps/physical && python manage.py trans2es_mapping2es -m true_click_three"
,
# "02,12,22,32,42,52 * * * * source /srv/envs/physical/bin/activate && cd /srv/apps/physical && python manage.py trans2es_mapping2es-m true_click_two",
"02,12,22,32,42,52 * * * * source /srv/envs/physical/bin/activate && cd /srv/apps/physical && python manage.py trans2es_mapping2es-m true_click_four"
,
# "00,10,20,30,40,50 * * * * source /srv/envs/physical/bin/activate && cd /srv/apps/physical && python manage.py trans2es_mapping2es -m true_click_three",
"06,16,26,36,46,56 * * * * source /srv/envs/physical/bin/activate && cd /srv/apps/physical && python manage.py trans2es_mapping2es -m true_click_five"
,
# "02,12,22,32,42,52 * * * * source /srv/envs/physical/bin/activate && cd /srv/apps/physical && python manage.py trans2es_mapping2es-m true_click_four",
# "06,16,26,36,46,56 * * * * source /srv/envs/physical/bin/activate && cd /srv/apps/physical && python manage.py trans2es_mapping2es -m true_click_five",
"0 14 * * * source /srv/envs/physical/bin/activate && cd /srv/apps/physical && python manage.py trans2es_mapping2es -m auto_star_urge"
,
"0 14 * * * source /srv/envs/physical/bin/activate && cd /srv/apps/physical && python manage.py trans2es_mapping2es -m auto_star_urge"
,
"0 10 * * * source /srv/envs/physical/bin/activate && cd /srv/apps/physical && python manage.py trans2es_mapping2es -m auto_urge1"
,
"0 10 * * * source /srv/envs/physical/bin/activate && cd /srv/apps/physical && python manage.py trans2es_mapping2es -m auto_urge1"
,
"30 10 * * * source /srv/envs/physical/bin/activate && cd /srv/apps/physical && python manage.py trans2es_mapping2es -m auto_urge2"
,
"30 10 * * * source /srv/envs/physical/bin/activate && cd /srv/apps/physical && python manage.py trans2es_mapping2es -m auto_urge2"
,
...
@@ -23,6 +24,7 @@ ontime_list = [
...
@@ -23,6 +24,7 @@ ontime_list = [
]
]
random_time_list
=
[
random_time_list
=
[
"* * * source /srv/envs/physical/bin/activate && cd /srv/apps/physical && python manage.py trans2es_mapping2es -m auto_click_per_1d_by_post"
,
"* * * source /srv/envs/physical/bin/activate && cd /srv/apps/physical && python manage.py trans2es_mapping2es -m auto_follow_per_1d_by_regist"
,
"* * * source /srv/envs/physical/bin/activate && cd /srv/apps/physical && python manage.py trans2es_mapping2es -m auto_follow_per_1d_by_regist"
,
"* * * source /srv/envs/physical/bin/activate && cd /srv/apps/physical && python manage.py trans2es_mapping2es -m auto_follow_per_1d_by_post"
,
"* * * source /srv/envs/physical/bin/activate && cd /srv/apps/physical && python manage.py trans2es_mapping2es -m auto_follow_per_1d_by_post"
,
"* * * source /srv/envs/physical/bin/activate && cd /srv/apps/physical && python manage.py trans2es_mapping2es -m answer_reply1"
,
"* * * source /srv/envs/physical/bin/activate && cd /srv/apps/physical && python manage.py trans2es_mapping2es -m answer_reply1"
,
...
@@ -53,6 +55,8 @@ for i in range(len(random_time_list)):
...
@@ -53,6 +55,8 @@ for i in range(len(random_time_list)):
ontime_list
.
append
(
str
(
ss2
[
i
])
+
" "
+
str
(
ss1
[
i
])
+
" "
+
str
(
random_time_list
[
i
]))
ontime_list
.
append
(
str
(
ss2
[
i
])
+
" "
+
str
(
ss1
[
i
])
+
" "
+
str
(
random_time_list
[
i
]))
data
=
open
(
"/data/log/physical/app/conf.txt"
,
"w"
)
data
=
open
(
"/data/log/physical/app/conf.txt"
,
"w"
)
# data = open("abc.txt", "w")
for
var
in
ontime_list
:
for
var
in
ontime_list
:
data
.
write
(
var
)
data
.
write
(
var
)
data
.
write
(
"
\n
"
)
data
.
write
(
"
\n
"
)
vest/change_reply/yesterday_topic_reply.py
View file @
af551d03
...
@@ -28,6 +28,7 @@ def get_data(numtime, numtime2):
...
@@ -28,6 +28,7 @@ def get_data(numtime, numtime2):
def
yesterday_comment_one
():
def
yesterday_comment_one
():
# 自动给帖子增加评论
try
:
try
:
logging
.
info
(
"comment one"
)
logging
.
info
(
"comment one"
)
numtime
,
numtime2
=
time_convs
(
1
,
1
)
numtime
,
numtime2
=
time_convs
(
1
,
1
)
...
...
vest/click/auto_click_per_2h_by_post.py
View file @
af551d03
...
@@ -3,7 +3,7 @@ import random
...
@@ -3,7 +3,7 @@ import random
import
traceback
import
traceback
import
logging
import
logging
from
threading
import
Thread
from
threading
import
Thread
from
vest.request.auto_request
import
login
,
time_conv_hour
,
follow
from
vest.request.auto_request
import
login
,
time_conv_hour
,
click
from
vest.request.auto_request
import
host
,
user
,
db
,
passwd
from
vest.request.auto_request
import
host
,
user
,
db
,
passwd
from
libs.error
import
logging_exception
from
libs.error
import
logging_exception
...
@@ -29,7 +29,7 @@ def batch_handle(auto_click_list):
...
@@ -29,7 +29,7 @@ def batch_handle(auto_click_list):
try
:
try
:
cookies
=
login
()
cookies
=
login
()
if
cookies
is
not
None
:
if
cookies
is
not
None
:
follow
(
cookies
,
topic_id
)
click
(
cookies
,
topic_id
)
except
:
except
:
pass
pass
...
...
vest/pictorial/principal_online_comment1.py
View file @
af551d03
...
@@ -59,6 +59,7 @@ def get_data(numtime1, numtime2):
...
@@ -59,6 +59,7 @@ def get_data(numtime1, numtime2):
def
principal_online_comment1
():
def
principal_online_comment1
():
# 根据问题内容,以及问题的评论条数据,给问题自动加评论,到这个表中取数据community_pictorial_topic
try
:
try
:
logging
.
info
(
"comment offline pictorial"
)
logging
.
info
(
"comment offline pictorial"
)
numtime1
,
numtime2
,
minute
=
time_conv_minute
(
240
,
0
)
numtime1
,
numtime2
,
minute
=
time_conv_minute
(
240
,
0
)
...
...
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