How do I clear cache with Python Requests?

后端 未结 4 1095
北荒
北荒 2020-12-06 09:35

Does the requests package of Python cache data by default?

For example,

import requests
resp = requests.get(\'https://some website\')
         


        
4条回答
  •  感动是毒
    2020-12-06 09:51

    Requests does not do caching by default. You can easily plug it in by using something like CacheControl.

提交回复
热议问题