Comments (3)
附docker compose 文件
version: "3"
services:
liuli_api:
image: liuliio/api:v0.1.3
restart: always
container_name: liuli_api
ports:
- "10030:8765"
volumes:
- ./pro.env:/data/code/pro.env
depends_on:
- liuli_mongodb
networks:
- liuli-network
liuli_schedule:
# image: liuliio/schedule:v0.2.4
image: liuliio/schedule:v0.2.4_playwright
restart: always
container_name: liuli_schedule
volumes:
- ./pro.env:/data/code/pro.env
- ./liuli_config:/data/code/liuli_config
depends_on:
- liuli_mongodb
networks:
- liuli-network
liuli_mongodb:
image: mongo:3.6
restart: always
container_name: liuli_mongodb
environment:
- MONGO_INITDB_ROOT_USERNAME=liuli
- MONGO_INITDB_ROOT_PASSWORD=liuli
ports:
- "27027:27017"
volumes:
- /data/docker/Database/DBLiuli:/data/db
command: mongod
networks:
- liuli-network
networks:
liuli-network:
driver: bridge
使用的config
{
"name": "default",
"author": "liuli_team",
"collector": {
"wechat_sougou": {
"wechat_list": [
"老胡的储物柜"
],
"delta_time": 5,
"spider_type": "playwright"
}
},
"processor": {
"before_collect": [],
"after_collect": [{
"func": "ad_marker",
"cos_value": 0.6
}, {
"func": "to_rss",
"link_source": "github"
}]
},
"sender": {
"sender_list": [],
"query_days": 7,
"delta_time": 3
},
"backup": {
"backup_list": ["mongodb"],
"query_days": 7,
"delta_time": 3,
"init_config": {},
"after_get_content": [{
"func": "str_replace",
"before_str": "data-src=\"",
"after_str": "src=\"https://images.weserv.nl/?url="
}]
},
"schedule": {
"period_list": [
"00:10",
"12:10",
"21:10"
]
}
}
env
PYTHONPATH=${PYTHONPATH}:${PWD}
LL_M_USER="liuli"
LL_M_PASS="liuli"
LL_M_HOST="liuli_mongodb"
LL_M_PORT="27017"
LL_M_DB="admin"
LL_M_OP_DB="liuli"
LL_FLASK_DEBUG=0
LL_HOST="0.0.0.0"
LL_HTTP_PORT=8765
LL_WORKERS=1
# 上面这么多配置不用改,下面的才需要各自配置
# 请填写你的实际IP
LL_DOMAIN="http://light.colinx.oldnine.xyz:10030"
# 请填写微信分发配置
#LL_WECOM_ID=""
#LL_WECOM_AGENT_ID="-1"
#LL_WECOM_SECRET=""
from liuli.
参考了https://github.com/liuli-io/liuli/blob/main/liuli_config/wechat.json 调整之后能够正常运行了,
"doc_source": "liuli_wechat", 这个需要单独配置
还有采集器wechat-sogou要更改为wechat
看来是微信公众号的那篇文章过时了,有些配置项有更改,麻烦作者有空的时候标明下。
from liuli.
参考了https://github.com/liuli-io/liuli/blob/main/liuli_config/wechat.json 调整之后能够正常运行了, "doc_source": "liuli_wechat", 这个需要单独配置 还有采集器wechat-sogou要更改为wechat 看来是微信公众号的那篇文章过时了,有些配置项有更改,麻烦作者有空的时候标明下。
谢谢提醒,很快就会搭建liuli的文档官网了,到时候会同步更新
from liuli.
Related Issues (20)
- 怎么在windows远程连接mongdb数据库? HOT 4
- 搜狗接口只能读到第一条文章 HOT 3
- 采集器有时候会抽风显示url无效 HOT 2
- 带有空格的公众号采集总是失败 HOT 7
- 希望增加功能,取消生成的RSS中的updated的变动 HOT 3
- 多人使用,推送消息的时候有人不喜欢我关注的微信公众号 HOT 1
- 采集的文章中如果含有视频,就会无法播放 HOT 1
- 如有公众号每天发布同样标题的文章,但内容不同时,备份到Github时会有冲突
- 为什么pro.env里要写27017? compose不是写了映射出去是27027吗? compose里的27027有何作用? HOT 2
- 有计划支持 SQLite 数据库吗? HOT 1
- Pipenv install looks not initializing Playwright correctly HOT 1
- 0.24版本参照教程无法启动schedule HOT 1
- ERROR Liuli 执行失败! HOT 3
- docker启动:database name cannot be the empty string HOT 1
- doc.liuli.io 无法打开 HOT 3
- 文章备份到本地是空白的,RSS全文解析时地址似乎自动识别的/liuli_wechat/老胡的储物柜之后的地址没有带上前缀 HOT 1
- Demo尝试失败
- 请教一下:RSS 输出链接为本地链接,而且content 为空 HOT 1
- 求助:日志正常,但备份器内容为空 HOT 1
- 采集失败,日志如下 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from liuli.