##简介 将微信公众号的订阅内容转换成RSS格式订阅,以便在RSS阅读器上查看
##环境依赖
-
phantomjs
cd /usr/local/share sudo wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2 sudo tar xjf phantomjs-1.9.7-linux-x86_64.tar.bz2 sudo ln -s /usr/local/share/phantomjs-1.9.7-linux-x86_64/bin/phantomjs /usr/local/share/phantomjs sudo ln -s /usr/local/share/phantomjs-1.9.7-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs sudo ln -s /usr/local/share/phantomjs-1.9.7-linux-x86_64/bin/phantomjs /usr/bin/phantomjs
-
selenium
sudo pip install -U selenium
-
Django
sudo pip install -U django
-
pip
方法1
wget https://bootstrap.pypa.io/get-pip.py python get-pip.py
方法2
sudo apt-get install python-pip
-
uwsgi
sudo apt-get install libxml2-dev python-dev sudo pip install uwsgi
uwsgi.xml 记得去掉
<plugins>python</plugins>
<uwsgi> <socket>127.0.0.1:8631</socket> <chdir>./</chdir> <pythonpath>./rss/</pythonpath> <module>wsgi</module> </uwsgi>
-
nginx
sudo apt-get remove apache2 sudo apt-get install nginx sudo vi /etc/nginx/sites-enabled/default
location /rss/ { uwsgi_pass 127.0.0.1:8631; include uwsgi_params; }