Hacker-News-Reader
所属分类:Julia编程
开发工具:CSS
文件大小:0KB
下载次数:0
上传日期:2015-01-13 07:27:32
上 传 者:
sh-1993
说明: 创建黑客新闻(News.ycombinator.com)scraper_and_功能前端的项目。这是一个学习专业...
(A project for a creating a Hacker News (news.ycombinator.com) scraper and functional frontend. This is a learning project.)
文件列表:
Gruntfile.js (986, 2015-01-12)
__init__.py (0, 2015-01-12)
api/ (0, 2015-01-12)
api/__init__.py (422, 2015-01-12)
api/backends/ (0, 2015-01-12)
api/backends/__init__.py (0, 2015-01-12)
api/backends/algolia.py (7602, 2015-01-12)
api/backends/base.py (2813, 2015-01-12)
api/backends/builtin.py (14733, 2015-01-12)
api/backends/firebase.py (5217, 2015-01-12)
manage.py (249, 2015-01-12)
package.json (281, 2015-01-12)
reader/ (0, 2015-01-12)
reader/__init__.py (0, 2015-01-12)
reader/cache.py (4347, 2015-01-12)
reader/fetch.py (2272, 2015-01-12)
reader/generate_secret_key.py (295, 2015-01-12)
reader/middleware.py (4099, 2015-01-12)
reader/migrations/ (0, 2015-01-12)
reader/migrations/0001_initial.py (4229, 2015-01-12)
reader/migrations/__init__.py (0, 2015-01-12)
reader/models.py (2389, 2015-01-12)
reader/settings.py (4544, 2015-01-12)
reader/static/ (0, 2015-01-12)
reader/static/css/ (0, 2015-01-12)
reader/static/css/bootstrap.css (119892, 2015-01-12)
reader/static/css/bootstrap.min.css (97339, 2015-01-12)
reader/static/css/styles.css (124787, 2015-01-12)
reader/static/fonts/ (0, 2015-01-12)
reader/static/fonts/bootstrap/ (0, 2015-01-12)
reader/static/fonts/bootstrap/glyphicons-halflings-regular.eot (20290, 2015-01-12)
reader/static/fonts/bootstrap/glyphicons-halflings-regular.svg (62850, 2015-01-12)
reader/static/fonts/bootstrap/glyphicons-halflings-regular.ttf (41236, 2015-01-12)
reader/static/fonts/bootstrap/glyphicons-halflings-regular.woff (23292, 2015-01-12)
reader/static/img/ (0, 2015-01-12)
reader/static/img/favicon.ico (318, 2015-01-12)
reader/static/img/glyphicons-halflings-white.png (8777, 2015-01-12)
reader/static/img/glyphicons-halflings.png (12799, 2015-01-12)
... ...
# Hacker News Reader
- - -
*Unofficial UI for news.ycombinator.com*
This project was started out of frustration from lack of proper mobile layout and other minor annoyances.
The main goal of the project is to give a more user friendly interface that should work on every platform. Mobile support is especially important.
**Current features:**
* Frontpage submissions and some simple sorting/filtering of those (new, top, Ask HN, etc.).
* Full support for comments viewing including polls and Ask HN posts.
* Can act as an API in reddit style (append .json to any page to get json output).
* Responsive layout thanks to Bootstrap (with some tweaking).
* Some comment enhancements like original posters name in a different color and comment collapsing. More planned.
Written in Python 2.7 and uses the following:
* Django
* Bootstrap as a CSS framework
* BeautifulSoup for parsing HTML
* Sass/Compass for CSS
* jQuery
* PostgreSQL
* Various timezone/time packages
* Check [requirements.txt](https://github.com/duvholt/Hacker-News-Reader/blob/master/ Hacker-News-Reader/blob/master/requirements.txt) for a full list of Python packages
Currently the project scrapes news.ycombinator.com directly which leads to some problems:
* One major problem is being unable to scrape older comments too often
* The "official" api HNSearch doesn't allow fetching by id rendering it completely useless for my use and most of the other unofficial apis have some problems with the formatting.
* Semi-random banning of the scrape IP.
* Normally I would just scrape with different IP addresses, but currently the project is hosted on AppFog free tier which only gives me one IP. I have a working port for Google App Engine, but for some reason it is unable to scrape HN at all.
Hosted on http://hn.cxhristian.com
近期下载者:
相关文件:
收藏者: