kennethreitz/requests
View on GitHub ↗ ★ 313 Python
A simple, yet elegant HTTP library.
34 mentions on Hacker News by 31 people: 7 stories, 27 comments · first 2011-08-04 · latest 2019-03-18
20082026
-
requests uses urllib3: https://github.com/kennethreitz/requests/blob/75bdc998e2d430... hannob opened an issue asking about this: https://github.com/urllib3/urllib3/issues/1553
comment by acdha · 2019-03-18 · in Python urllib CRLF injection vulnerability -
The older method is docstrings (reST and similar) like here: https://github.com/kennethreitz/requests/blob/master/request... IDEs like PyCharm can use those and other methods to find most typing issues. In practice this is very effective…
comment by asddddd · 2017-04-23 · in Python, as Reviewed by a C++ Programmer -
https://github.com/pallets/flask and https://github.com/kennethreitz/requests both in python, but beautiful code, well structured and you would not need any docs, just read the code
comment by bmaeser · 2017-03-13 · in Ask HN: What are some examples of good code? -
…a page size tool I hacked up. [2] Reference [0] https://tools.ietf.org/html/rfc2616#section-6 [1] https://github.com/kennethreitz/requests [2] https://github.com/peterrenshaw/pageglut
comment by bootload · 2017-02-10 · in Monitor web page changes with Go -
…overview of the requests library, most of the lines over 80 characters are just laziness such as: https://github.com/kennethreitz/requests/blob/master/tests/t... And a few of the actual potential cases for going over 80 characters can…
comment by zepolen · 2017-01-23 · in If I could amend PEP 8 -
…distribution would have made it more difficult for them to innovate in their current way. [0] [0] https://github.com/kennethreitz/requests/issues/2424
comment by shakna · 2017-01-14 · in Rust and the limits of swarm design -
…handy as well [1]. The Django project is also good reading. [2], [3] [0] - Requests code: https://github.com/kennethreitz/requests [1] - Requests documentation: http://docs.python-requests.org/en/master/ [2] - Django code:…
comment by japhyr · 2016-12-19 · in One Way to Improve Your Coding -
github also does versioned releases, no? https://github.com/kennethreitz/requests/releases as an example
comment by RubyPinch · 2016-06-08 · in The State of SourceForge Since Its Acquisition in January -
…extras. In this particular case, this installs 'pyOpenSSL>=0.13', 'ndg-httpsclient', 'pyasn1'. See: https://github.com/kennethreitz/requests/blob/46184236dc177f...
comment by krallin · 2016-03-02 · in A Better Pip Workflow -
…this workflow has a little drawback. If you have a dependency not from pipy, e.g. `pip install git+ssh://github.com/kennethreitz/requests.git@master`, it won't work.
comment by xuan · 2016-03-02 · in A Better Pip Workflow -
Yeah, so this is an interesting feature because in my experience it doesn't work. [We added one]( https://github.com/kennethreitz/requests/blob/master/CONTRIB... ) for the Requests module a little while ago because we kept getting bug…
comment by Lukasa · 2015-12-30 · in Starters and Maintainers -
…) * Werkzeug ( https://github.com/mitsuhiko/werkzeug ) * Requests ( https://github.com/kennethreitz/requests ) * Tablib ( https://github.com/kennethreitz/tablib ) Hope that helps---good luck!
comment by aaronjgreenberg · 2015-07-16 · in Ask HN: Good Python codebases to read? -
Requests - https://github.com/kennethreitz/requests . How to make a usable api. The decisions that went into each method call were fantastic. Great test coverage as well. I use package in most python development.
comment by clinth · 2015-07-16 · in Ask HN: Good Python codebases to read? -
Session objects have been pickle-able since 2013: https://github.com/kennethreitz/requests/pull/1243
comment by di · 2015-07-09 · in Serializing Python Requests' Session Objects (2012) -
Instead of curl I was usually writing https://github.com/kennethreitz/requests
comment by lukasm · 2014-06-13 · in HTTPie is a command line HTTP client, a user-friendly cURL replacement -
…of ISO-8859-1), because that's what the RFC says they should do. Hopefully, they'll reconsider now. https://github.com/kennethreitz/requests/issues/1737 https://github.com/kennethreitz/requests/issues/2086
comment by itsadok · 2014-06-08 · in HTTP/1.1 just got a major update -
…can do to make SNI work in 2.7 with requests but it is way too complicated for most deployments: https://github.com/kennethreitz/requests/blob/master/request... I've actually done this once. Took all day.
comment by jccooper · 2014-05-11 · in If You Can Read This, You're SNIing -
…curl ( http://curl.haxx.se/docs/manpage.html#-L ) (and presumably libcurl), Python's requests ( https://github.com/kennethreitz/requests/blob/master/request... ) library, Python's urllib.request ( http://docs.python.org/3.3/library/urllib.r…
comment by Lukasa · 2014-02-17 · in HTTP 308 Incompetence Expected -
…the best way to go about it as I stumbled around. It's a good codebase and an awesome library. [1] https://github.com/kennethreitz/requests/pull/1507
comment by erydo · 2013-09-24 · in Requests v2.0 Python module released -
…says being able to specify the outbound IP of an HTTP request is out of the scope of his module??? https://github.com/kennethreitz/requests/issues/394 That's why I am still using urllib2.
comment by codexon · 2012-11-11 · in Python for Humans -
Link, for the interested: https://github.com/kennethreitz/requests
comment by codehenge · 2012-04-23 · in Crawl a website with scrapy and store extracted results with MongoDB -
Requests: HTTP for Humans Lovely code and good documentation https://github.com/kennethreitz/requests Also checkout the Hitchhiker's Guide to Python http://docs.python-guide.org/en/latest/index.html
comment by easonchan42 · 2012-04-06 · in Where is excellent Python code? -
It's unreleased, and therefore completely undocumented at the moment. But here's the API: https://github.com/kennethreitz/requests/issues/98
comment by kenneth_reitz · 2011-10-10 · in Python Requests: HTTP for Humans -
…failed to—it's neither in the front page example, or in the API documentation for Response. [1] https://github.com/kennethreitz/requests/issues/105
comment by beaumartinez · 2011-08-14 · in Requests: HTTP for Humans -
Quick question on the code. I'm looking at this commit: https://github.com/kennethreitz/requests/commit/773630b0109c... and wondering what "from .status_codes import codes" does? Specifically the fact that it's not "status_codes" and has a…
comment by bialecki · 2011-08-14 · in Requests: HTTP for Humans -
…API support for the common ones. here's the api for a generic request, get is right under it: https://github.com/kennethreitz/requests/blob/develop/reques...
comment by izak30 · 2011-08-14 · in Requests: HTTP for Humans -
https://github.com/mitsuhiko/flask https://github.com/kennethreitz/requests Both are 'small to medium' size projects, both are active and well-known in the Python community, both have friendly maintainers (Armin and Kenneth) that are…
comment by swanson · 2011-08-04 · in Ask HN: Which OSS projects needs help?