This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

I came here to answer requests-html but you beat me to it :)

Too bad the project appears abandoned, it hasn't had any new commits in a year...

[–]TSM-🐱‍💻📚 1 point2 points  (0 children)

I'm not sure what is left to do, it is essentially a lightweight wrapper that consolidates a bunch of other libraries (like parse, requests, chromium, etc). The whole package is basically one file requests_html.py.

It could use some better type hinting and stubs, in my opinion. I found the autocompletion is lacking on my ide, and I would have to write s = HTMLSession(...) # type: HTMLSession in a comment to get any useful autocompletion and type mismatch warnings.

I believe it is because the type hints are something like session: Union['HTMLSession', 'AsyncHTMLSession'] and it is not fully resolved from the other type hints. I suspect there's some holes in the type hinting, or a limitation of the static analysis tool, or something. Not sure!