Python and urllib2: how to make a GET request with parameters

前端 未结 3 1895
花落未央
花落未央 2021-01-31 08:18

I\'m building an \"API API\", it\'s basically a wrapper for a in house REST web service that the web app will be making a lot of requests to. Some of the web service calls need

3条回答
  •  甜味超标
    2021-01-31 08:47

    urllib.urlencode

    And yes, the urllib / urllib2 division of labor is a little confusing in Python 2.x.

提交回复
热议问题