You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
```
>>> from ihackernews import iHackerNewsAPI
>>> hn = iHackerNewsAPI()
>>> response = hn.profile('dmpayton')
>>> response
<iHackerNewsResponse: https://api.ihackernews.com/profile/dmpayton>
>>> response.response # The raw response from the requests library
<Response [200]>
>>> response.data # The parsed JSON data
{u'username': u'dmpayton', u'about': u"24 year old software developer (Python) in Southern California.<p>Me: <a href='https://dmpayton.com'>https://dmpayton.com</a>\nDay job: <a href='https://cukerinteractive.com'>https://cukerinteractive.com</a><p>derek.payton (at) Google's mail service.", u'createdAgo': u'1560 days ago', u'cachedOnUTC': u'/Date(1323325776265)/', u'version': u'1.0', u'karma': 578}
```
More examples can be found in tests.py.
Testing
python tests.py
Note: Potential instabilities in the iHackerNews API service may cause test failures. It's not entirely uncommon to receive 500's or empty data from the API, which sucks, but c'est la vie.
TODO
Better documentation
Automatically parse Dates to datetime.datetime objects