# news_wx **Repository Path**: zhycde/news_wx ## Basic Information - **Project Name**: news_wx - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2016-05-20 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 微信管理 ## 环境依赖 ``` #二维码支持 apt-get install libzbar0 libzbar-dev #lxml apt-get install libxml2-dev libxslt1-dev zlib1g-dev apt-get install libblas-dev liblapack-dev libatlas-base-dev gfortran #开启selenium(docker) docker run --privileged -p 4444:4444 -p 5999:5999 -d vvoyer/docker-selenium-firefox-chrome ``` ## 初始化 ``` python3 cli.py cron_crawl_sougou #爬取资料 python3 cli.py cli_signin #注册用户 python3 cli.py cli_BayesTest #测试广告过滤 python3 cli.py cron_filter_training #训练广告模型 ``` ## 开启服务器 ``` #开启微信服务器 python3 wx_server.py #开启restful gunicorn -b 0.0.0.0:8001 -w 5 restful_server:app (python restful_server.py) #开启图片服务器 cd statics && nohup python3 -m http.server 8080 & ```