Yakni penggunaan pengembangan script ini
Dependensi yang dibutuhkan :
-feedparser
-chardet --> sudah ada default pada slackware 13.37
-html2text
-flask
Download dan Install feedparser slackware package
http://slackware.org.uk/slacky/slackware-13.37/network/feedparser/5.0.1/src/feedparser.SlackBuild http://slackware.org.uk/slacky/slackware-13.37/network/feedparser/5.0.1/src/slack-desc http://slackware.org.uk/slacky/slackware-13.37/network/feedparser/5.0.1/src/slack-required
jalankan perintah
bash feedparser.SlackBuild && installpkg feedparser-5.0.1-i686-1sl.txz
Download dan install html2text slackware package
http://slackware.org.uk/slackbuilds.org/13.37/python/html2text/README http://slackware.org.uk/slackbuilds.org/13.37/python/html2text/html2text.SlackBuild http://slackware.org.uk/slackbuilds.org/13.37/python/html2text/html2text.info http://slackware.org.uk/slackbuilds.org/13.37/python/html2text/slack-desc http://crocket-slackbuilds.googlecode.com/files/html2text-3.02.tar.bz2
jalankan perintah
bash html2text.SlackBuild && installpkg /tmp/html2text-3.02-i486-1_SBo.tgz
Download dan install flask
Jalankan perintah:
git clone http://github.com/mitsuhiko/flask/pre> cd flask python setup.py build python setup.py install
pada script wep.py , edit pada baris
app.run(host='0.0.0.0', port=port)ganti menjadi
app.run(host='127.0.0.1', port=port)
pada port biarkan saja 5000
sedangkan ip address 127.0.0.1 adalah localhost anda sendiri
jalankan pada terminal
python web.pyselanjutkan buka browser http://localhost (jika anda memiliki server sendiri, gunakan ip tersebut)
No comments:
Post a Comment