Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
crawler
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
backend
crawler
Commits
f056f8f7
Commit
f056f8f7
authored
Jan 15, 2021
by
litaolemo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
9a457419
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
8 deletions
+9
-8
es_target_releasers.py
crawler_sys/framework/es_target_releasers.py
+0
-1
run.sh
run.sh
+3
-2
start_crawler.sh
start_crawler.sh
+4
-3
run.sh
tasks/run.sh
+2
-2
No files found.
crawler_sys/framework/es_target_releasers.py
View file @
f056f8f7
...
...
@@ -9,7 +9,6 @@ import random
from
elasticsearch
import
Elasticsearch
from
elasticsearch.helpers
import
scan
# rds=redis.StrictRedis(host='192.168.17.26',port=6379,db=0)
hosts
=
'172.18.52.14'
port
=
9200
...
...
run.sh
View file @
f056f8f7
#!/bin/bash
#sudo su - gmuser
crawler-ops
#
crawler-ops
#conda activate crawler_env
python /srv/apps/crawler/crawler_sys/framework/write_releasers_to_redis.py
-p
weibo
-d
1
-proxies
5
>
/data/log/crawler/write_task.log &
source
/srv/envs/crawler/bin/activate
python /srv/apps/crawler_old/crawler/crawler_sys/framework/write_releasers_to_redis.py
-p
weibo
-d
1
-proxies
5
>
/data/log/crawler/write_task.log &
#/home/gmuser/.virtualenvs/litao/bin/python3 /srv/apps/crawler/crawler_sys/framework/write_releasers_to_redis.py -p douban -d 1 -proxies 5 > /data/log/crawler/write_task.log &
start_crawler.sh
View file @
f056f8f7
...
...
@@ -2,8 +2,9 @@
#source /root/anaconda3/bin/activate
#conda activate crawler_env
sudo
su - gmuser
source
/srv/envs/crawler/bin/activate
ps aux|grep update_data_in_target_releasers_multi_process_by_date_from_redis|grep
-v
grep
|cut
-c
9-15|xargs
kill
-15
ps aux|grep cal_ni_and_put_to_backend|grep
-v
grep
|cut
-c
9-15|xargs
kill
-15
current_date
=
`
date
-d
"-1 day"
"+%Y%m%d"
`
python /srv/apps/crawler/crawler_sys/framework/update_data_in_target_releasers_multi_process_by_date_from_redis.py
>
/data/log/crawler/write_task_
${
current_date
}
_.log &
python /srv/apps/crawler/crawler_sys/scheduler/cal_ni_and_put_to_backend.py
>
/data/log/crawler/.log &
\ No newline at end of file
python /srv/apps/crawler_old/crawler/crawler_sys/framework/update_data_in_target_releasers_multi_process_by_date_from_redis.py
>
/data/log/crawler/write_task_
${
current_date
}
_.log &
python /srv/apps/crawler_old/crawler/crawler_sys/scheduler/cal_ni_and_put_to_backend.py
>
/data/log/crawler/.log &
\ No newline at end of file
tasks/run.sh
View file @
f056f8f7
source
/srv/envs/esmm/bin/activate
python /srv/apps/crawler/write_data_into_es/revise_data_from_es.py
\ No newline at end of file
python /srv/apps/crawler_old/crawler/write_data_into_es/revise_data_from_es.py
\ No newline at end of file
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