How to speed up API requests?

后端 未结 5 1559
没有蜡笔的小新
没有蜡笔的小新 2020-12-16 02:31

I\'ve constructed the following little program for getting phone numbers using google\'s place api but it\'s pretty slow. When I\'m testing with 6 items it takes anywhere fr

5条回答
  •  [愿得一人]
    2020-12-16 03:02

    Use sessions to enable persistent HTTP connections (so you don't have to establish a new connection every time)

    Docs: Requests Advanced Usage - Session Objects

提交回复
热议问题