How to prevent python requests from percent encoding my URLs?

前端 未结 5 715
故里飘歌
故里飘歌 2020-11-30 03:11

I\'m trying to GET an URL of the following format using requests.get() in python:

http://api.example.com/export/?format=json&key=site:dummy+type:example+group:wh

5条回答
  •  心在旅途
    2020-11-30 03:41

    Please have a look at the 1st option in this github link. You can ignore the urlibpart which means prep.url = url instead of prep.url = url + qry

提交回复
热议问题