Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dongweiming/weapp-zhihulive
知乎Live微信小程序 & asyncio爬虫
https://github.com/dongweiming/weapp-zhihulive
live weapp wechat zhihu zhihulive
Last synced: 9 days ago
JSON representation
知乎Live微信小程序 & asyncio爬虫
- Host: GitHub
- URL: https://github.com/dongweiming/weapp-zhihulive
- Owner: dongweiming
- License: apache-2.0
- Created: 2017-02-05T06:03:13.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-30T12:37:55.000Z (almost 7 years ago)
- Last Synced: 2024-10-11T19:46:52.919Z (24 days ago)
- Topics: live, weapp, wechat, zhihu, zhihulive
- Language: Python
- Homepage: https://zhuanlan.zhihu.com/p/25530067
- Size: 91.5 MB
- Stars: 361
- Watchers: 25
- Forks: 126
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-github-wechat-app - weapp-zhihulive - 基于Zhihu Live数据的微信小程序 (Demo)
- awesome-github-wechat-weapp - weapp-zhihulive - 基于Zhihu Live数据的微信小程序 (Demo)
README
# weapp-zhihulive
基于Zhihu Live数据的微信小程序.数据归知乎所有,本项目用于技术学习
## Preview
![设计图](./screenshot/zhihulive.png)
如果在wifi情况下或者土豪不介意流量的同学可以直接[感受实际使用的动态效果](./screenshot/zhihulive.gif)
## Getting started
本项目包含服务端和微信小程序全部源代码:
```python
❯ git clone https://github.com/dongweiming/weapp-zhihulive
❯ cd weapp-zhihulive
❯ tree -L 1
.
├── App # 小程序代码
├── LICENSE
├── README.md
├── Server # 服务端+爬虫代码
├── screenshot # 设计图和动态效果
```启动服务端:
```python
❯ cd Server
❯ python3 -m venv venv3 --system-site-packages
❯ source venv3/bin/activate
❯ python3 -m pip install -r requirements.txt
# 配置MySQL和Elasticsearch
❯ python crawl.py # 运行爬虫获取全部Live数据
❯ python app.py # 启动API服务
```运行小程序:
1. [下载并安装小程序开发工具](https://mp.weixin.qq.com/debug/wxadoc/dev/devtools/download.html)
2. 启动开发工具,添加项目,目录为App