rylans / hackernews-top Goto Github PK
View Code? Open in Web Editor NEWGet top stories using Hacker News' Firebase API
License: Apache License 2.0
Get top stories using Hacker News' Firebase API
License: Apache License 2.0
Write a function that corresponds to https://hacker-news.firebaseio.com/v0/newstories
Reformat the output so that it can easily be consumed by other programs.
Check for duplicate userids and only include the most recent one in the aggregate file.
Support Python 3 in addition to 2.7
ApiConnector().get_item(15)
fails with a runtime error because comments are unsupported.
Use a datetime library to automatically put the output file where it is supposed to go and name it properly.
Put examples like requesting an item and accessing its fields into the README file.
Mostly 'Ask HN' type stories where there is no URL don't show up in the aggregate file since they're put into a dictionary with the URL as the key.
Sometimes the /maxitem endpoint comes back with HTTP Error 401: Unauthorized
It would be nice if I could throw a RetryException, then have it wait a few seconds and try again.
Determine which functions are public api and which are private. Prepend underscore to the private internals.
Some story items don't actually represent a story. They look like this {"id":8847790,"time":1420586270,"type":"story"}
add support for these surrogate items
Include a timestamp with datetime and timezone.
Use Travis for continuous integration.
Put the current datetime in the filename like 2014-10-11.csv
It may have been misguided to presume that schemas and fields were a good approach for this. The Firebase API requires more flexibility to heretofore unforeseen fields.
There's no error detection for api calls. It should at lease be in a try/catch.
Make a Python module for this code.
http://www.scotttorborg.com/python-packaging/minimal.html
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.