Home

Awesome

<p align="center"><img src="./.files/images/logo_pure.jpg" width='120px' height='120px' alt="Liuli logo" > </p> <h1 align="center">Liuli</h1> <p align="center">📖 一站式构建多源、干净、个性化的阅读环境</p> <p align="center"><strong>琉璃开净界,薜荔启禅关</strong></p> <!-- <div align=center><img src=".files/images/liuli_ads_word_cloud.jpg" width="100%" alt="liuli_ads_word_cloud" /></div> -->

✨ 特性

使用Liuli,你可以得到:

使用场景:

🍥 使用

教程[使用前必读]:

快速开始,请先确保安装Docker

mkdir liuli && cd liuli
# 数据库目录
mkdir mongodb_data
# 任务配置目录
mkdir liuli_config
wget -O liuli_config/default.json https://raw.githubusercontent.com/howie6879/liuli/main/liuli_config/default.json
# 配置 pro.env 具体查看 doc/02.环境变量.md
vim pro.env
# 下载 docker-compose
wget https://raw.githubusercontent.com/howie6879/liuli/main/docker-compose.yaml
# 启动
docker-compose up -d

代码安装使用过程如下:

# 确保有Python3.7+环境
git clone https://github.com/liuli-io/liuli.git --depth=1
cd liuli

# 创建基础环境
pipenv install --python={your_python3.7+_path} --dev  --skip-lock
# 配置.env 具体查看 doc/02.环境变量.md 启动调度
pipenv run dev_schedule

启动成功日志如下:

Loading .env environment variables...
[2021:12:23 23:08:35] INFO  Liuli Schedule started successfully :)
[2021:12:23 23:08:35] INFO  Liuli Schedule time: 00:00 06:00
[2021:12:23 23:09:36] INFO  Liuli playwright 匹配公众号 老胡的储物柜(howie_locker) 成功! 正在提取最新文章: 我的周刊(第018期)
[2021:12:23 23:09:39] INFO  Liuli 公众号文章持久化成功! 👉 老胡的储物柜
[2021:12:23 23:09:40] INFO  Liuli 🤗 微信公众号文章更新完毕(1/1)

推送效果如图:

<div align=center><img width="20%" src="https://raw.githubusercontent.com/howie6879/oss/master/images/m3nJ61.png" /></div>

🤔 实现

大概流程如下:

<div align=center><img src=".files/images/liuli_process.svg" width="85%" alt="liuli_process" /></div>

简单解释一下:

这样做就实现了干净阅读环境的构建,衍生一下,基于获取的数据,可做的事情有很多,大家不妨发散一下思路。

开发进度看板:

🤖 帮助

为了提升模型的识别准确率,我希望大家能尽力贡献一些广告样本,请看样本文件:.files/datasets/ads.csv,我设定格式如下:

titleurlis_process
广告文章标题广告文章连接0

字段说明:

来个实例:

<div align=center><img src=".files/images/liuli_ads_csv_demo.jpg" width="100%" alt="liuli_ads_csv_demo" /></div>

一般广告会重复在多个公众号投放,填写的时候麻烦查一下是否存在此条记录,希望大家能一起合力贡献,亲,来个 PR 贡献你的力量吧!

👀 致谢

感谢以下开源项目:

以上仅列出比较核心的开源依赖,更多第三方依赖请见Pipfile文件。

您任何PR都是对Liuli项目的大力支持,非常感谢以下开发者的贡献(排名不分先后):

<!-- To get src for img: https://api.github.com/users/username -->

<a href="https://github.com/howie6879"><img src="https://avatars.githubusercontent.com/u/17047388?s=60&v=4" title="howie6879" width="40" height="40" ></a> <a href="https://github.com/AI-xiaofour"><img src="https://avatars.githubusercontent.com/u/20813419?v=4" title="AI-xiaofour" width="40" height="40" ></a> <a href="https://github.com/Xuenew"><img src="https://avatars.githubusercontent.com/u/41135035?s=64&v=4" title="Xuenew" width="40" height="40" ></a> <a href="https://github.com/cn-qlg"><img src="https://avatars.githubusercontent.com/u/15536545?s=64&v=4" title="cn-qlg" width="40" height="40" ></a> <a href="https://github.com/baboon-king"><img src="https://avatars.githubusercontent.com/u/63645337?v=4" title="baboon-king" width="40" height="40" ></a> <a href="https://github.com/123seven"><img src="https://avatars.githubusercontent.com/u/42730681?v=4" title="123seven" width="40" height="40" ></a> <a href="https://github.com/zyd16888"><img src="https://avatars.githubusercontent.com/u/26684563?v=4" title="zyd16888" width="40" height="40" ></a> <a href="https://github.com/LeslieLeung"><img src="https://avatars.githubusercontent.com/u/22127499?v=4" title="LeslieLeung" width="40" height="40" ></a> <a href="https://github.com/gclm"><img src="https://avatars.githubusercontent.com/u/27618687?v=4" title="gclm" width="40" height="40" ></a> <a href="https://github.com/showthesunli"><img src="https://avatars.githubusercontent.com/u/3203516?v=4" title="showthesunli" width="40" height="40" ></a> <a href="https://github.com/throughs"><img src="https://avatars.githubusercontent.com/u/54225721?v=4" title="throughs" width="40" height="40" ></a> <a href="https://github.com/LiuYi0526"><img src="https://avatars.githubusercontent.com/u/50787709?v=4" title="LiuYi0526" width="40" height="40" ></a> <a href="https://github.com/blue-troy"><img src="https://avatars.githubusercontent.com/u/12729455?v=4" title="blue-troy" width="40" height="40" ></a> <a href="https://github.com/didnhdj2"><img src="https://avatars.githubusercontent.com/u/115675424?v=4" title="didnhdj2" width="40" height="40" ></a>

👉 关于

欢迎一起交流(关注入群):

<div align=center><img src="https://raw.githubusercontent.com/howie6879/oss/master/images/wechat_howie.png" width="85%" alt="img" /></div>