Cannot parse result
I write some line to get top or newest stories, when i print and get error like this:
./hackernews_api.py /usr/lib64/python2.7/site-packages/bs4/init.py:181: UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("html.parser"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently.
The code that caused this warning is on line 12 of the file ./hackernews_api.py. To get rid of this warning, change code that looks like this:
BeautifulSoup(YOUR_MARKUP})
to this:
BeautifulSoup(YOUR_MARKUP, "html.parser")
markup_type=markup_type))
Traceback (most recent call last):
File "./hackernews_api.py", line 12, in
Something i went wrong, pls fix. Thanks
+1, I am seeing the exact same issue. This module hasn't been updated in years, maybe there is a fork that is actively being maintained, but there are too many to try to search through them.
Also, there is a REST API for HN, so I don't know why this module is scraping HTML.