HackerNewsAPI
HackerNewsAPI copied to clipboard
:newspaper: Unofficial Python API for Hacker News. RESTful API at https://github.com/karan/HNify
When we call the get_comments method, if story doesn't have any comments the api breaks as i keeps looking for table of comments in the page and won't be able...
Hi, While you get and try to print the story.title in my_test_bot.py. It gives following error. 'ascii' codec can't encode character u'\u2013' in position 9: ordinal not in range(128) Solution...
table = soup.findChildren('table')[3] # the table holding all comments IndexError: list index out of range
Added User data functionality to retrieve user data. All the info is extracted except for comments. Could not finish it because getting the following message when testing: We've limited requests...
user data.
update the api to fetch user datas submissions , comments , karmas etc
``` python from hn import Story story = Story.fromid(7324236) comments = story.get_comments() print comments[0].body print comments[0].body_html ``` Seems like `.body_html` only returns a portion of the comment body's HTML.