Re:Requests-HTML: HTML Parsing for Humans
by brilee on Sunday February 25, 2018 @01:38PM
(#16460395)
This is a nice wrapper around requests, pyquery https://github.com/gawel/pyquery/ and parse https://github.com/r1chardj0n3s/parse of which only requests is Kenneth Reitz. Let's give credit where it's due.
[ Parent
| on HN ]
To give even more credit where it's due, requests is a nice wrapper around urllib3, which is the work of Andrey Petrov, Cory Benfield and contributors. While requests provides good user-friendly defaults and API semantics, urllib3 does a lot of the heavy lifting.
Re:Requests-HTML: HTML Parsing for Humans
by kenneth_reitz on Sunday February 25, 2018 @01:59PM
(#16460500)
It wasn't at first, actually. It was originally a wrapper around urllib2 — Andrey and I collabed early on in both project's histories to make them what they are today.
Re:Requests-HTML: HTML Parsing for Humans
by halflings on Sunday February 25, 2018 @02:23PM
(#16460646)
requests does much more on top of urllib3 than this new requests-html does on top of requests + pyquery.
It greatly simplifies the most common patterns in doing HTTP requests; things like authentication, passing headers, retry logic, etc.
Which is written in python, so better give credit for that.
Wow and now python is in C so line up your credit books, we are in for a long night tonight.
Thoughts & prays for all contributors
To quote Carl Sagan, "If you wish to make an apple pie from scratch, you must first invent the universe."
...I know you're trolling, but I seriously wonder where it would stop if we were to go down all that way.
Re:Requests-HTML: HTML Parsing for Humans
by patneedham on Sunday February 25, 2018 @05:45PM
(#16461653)
Gotta give credit to whichever cavemen/cavewomen discovered fire, and all the civilizations that invented the wheel, Ben Franklin for harnessing the power of electricity, and then maybe Ken Thompson and Dennis Ritchie for inventing Unix.
Re:Requests-HTML: HTML Parsing for Humans
by amenod on Sunday February 25, 2018 @02:15PM
(#16460595)
I think most people around here know this, but it doesn't really matter. We love `requests` because of its API, which is what Kenneth Reitz contributed. There are many competing HTTP client libs, but only one (that I know of) with intuitive syntax; I hope others follow suit. APIs are not just something that you slam on top of your lib, they should be developed in the same way every other interface is - UX is usually much more important than just pure performance.
What do you mean "give credit where it's due"? It's not common (in my experience) to thank every dependency's creator, right?
Re:Requests-HTML: HTML Parsing for Humans
by brilee on Sunday February 25, 2018 @04:31PM
(#16461280)
In about half of the examples, the methods are more user-friendly wrappers around underlying libraries - great! love it! In the other half of the examples, the niceness of the API is in fact due to the user-friendly design of the underlying PyQuery/Parse libraries. So I want to give credit to their good APIs, too.