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
ea7d0c06
Commit
ea7d0c06
authored
Jul 27, 2020
by
litaolemo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
2f3b73ca
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
14 deletions
+27
-14
README.md
README.md
+4
-2
activate.sh
activate.sh
+4
-0
update_data_in_target_releasers_multi_process_by_date_from_redis.py
...a_in_target_releasers_multi_process_by_date_from_redis.py
+12
-10
requirements.txt
requirements.txt
+7
-2
No files found.
README.md
View file @
ea7d0c06
# crawler
1.
部署在BJ-GM-Prod-Cos-faiss001/srv/apps/
2.
创建虚拟环境 conda activate crawler_env/conda deactivate
\ No newline at end of file
2.
切换权限 sudo su - gmuser
3.
source /root/anaconda3/bin/activate
4.
创建虚拟环境 conda activate crawler_env/conda deactivate
\ No newline at end of file
activate.sh
0 → 100644
View file @
ea7d0c06
sudo
su - gmuser
source
/root/anaconda3/bin/activate
conda activate crawler_env
\ No newline at end of file
crawler_sys/framework/update_data_in_target_releasers_multi_process_by_date_from_redis.py
View file @
ea7d0c06
...
...
@@ -14,9 +14,11 @@ Data in es will be update when run this program once.
@author: hanye
"""
from
crawler.crawler_sys.site_crawler_by_redis
import
(
crawler_toutiao
,
crawler_v_qq
,
crawler_tudou
,
crawler_haokan
,
crawler_tencent_news
,
crawler_wangyi_news
,
crawler_kwai
,
crawler_douyin
,
toutiao_article
,
crawler_weibo
,
crawler_douban
)
from
crawler.crawler_sys.site_crawler_by_redis
import
(
crawler_toutiao
,
# crawler_v_qq, crawler_tudou, crawler_haokan,
# crawler_tencent_news,
# crawler_wangyi_news, crawler_kwai, crawler_douyin,
toutiao_article
,
crawler_weibo
,
crawler_douban
)
import
sys
from
crawler.crawler_sys.utils.output_results
import
output_result
import
argparse
,
copy
,
datetime
,
time
...
...
@@ -69,19 +71,19 @@ args = parser.parse_args()
platform_crawler_reg
=
{
'toutiao'
:
crawler_toutiao
.
Crawler_toutiao
,
'toutiao_article'
:
toutiao_article
.
Crawler_toutiao_article
,
'腾讯视频'
:
crawler_v_qq
.
Crawler_v_qq
,
#
'腾讯视频': crawler_v_qq.Crawler_v_qq,
# 'iqiyi': crawler_iqiyi.Crawler_iqiyi,
# 'youku': crawler_youku.Crawler_youku,
'new_tudou'
:
crawler_tudou
.
Crawler_tudou
,
'haokan'
:
crawler_haokan
.
Crawler_haokan
,
'腾讯新闻'
:
crawler_tencent_news
.
Crawler_Tencent_News
,
#
'new_tudou': crawler_tudou.Crawler_tudou,
#
'haokan': crawler_haokan.Crawler_haokan,
#
'腾讯新闻': crawler_tencent_news.Crawler_Tencent_News,
# 'miaopai': crawler_miaopai.Crawler_miaopai,
# 'pearvideo': crawler_pear.Crawler_pear,
# 'bilibili': crawler_bilibili.Crawler_bilibili,
# 'Mango': crawler_mango,
'抖音'
:
crawler_douyin
.
Crawler_douyin
,
"网易新闻"
:
crawler_wangyi_news
.
Crawler_wangyi_news
,
"kwai"
:
crawler_kwai
.
Crawler_kwai
,
#
'抖音': crawler_douyin.Crawler_douyin,
#
"网易新闻": crawler_wangyi_news.Crawler_wangyi_news,
#
"kwai": crawler_kwai.Crawler_kwai,
"weibo"
:
crawler_weibo
.
Crawler_weibo
,
"douban"
:
crawler_douban
.
Crawler_douban
}
...
...
requirements.txt
View file @
ea7d0c06
...
...
@@ -5,4 +5,9 @@ absl-py==0.9.0
kdl
==0.2.15
redis
==3.5.3
elasticsearch
==7.8.0
qiniu
==7.2.8
\ No newline at end of file
qiniu
==7.2.8
aiohttp
==3.6.2
bs4
==4.9.1
selenium
==3.141.0
fontTools
==4.13.0
numpy
==1.19.1
\ 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