Don't Keep Requesting API Data, DO THIS!

John Watson Rooney
John Watson Rooney
11.3 هزار بار بازدید - پارسال - Grab IPRoyal Proxies with a
Grab IPRoyal Proxies with a 30% discount while it lasts! Click here to find the 30% off coupon code: 02:05 Find out more at iproyal.club/JohnWatsonRooney

Find out how to start using basic caching in your API responses and FastAPI application with requests-cache

UPDATE
Sil Kogelman:

"A little code update is required to make the code from this tutorial run.
requests_cache released version 1.0.0 on 2023-03-01 with a breaking change:
line 23 and 26 now need () after session.cache.urls as it has been replaced with a method that returns a list of sorted unique URLs. "

https://github.com/requests-cache/req...

https://github.com/jhnwr/youtube

Scraper API https://www.scrapingbee.com/?fpr=jhnwr
Patreon: Patreon: johnwatsonrooney
Donations: https://www.paypal.com/donate/?hosted...
Proxies: iproyal.club/JohnWatsonRooney
Hosting: Digital Ocean: https://m.do.co/c/c7c90f161ff6
Gear I use: https://www.amazon.co.uk/shop/johnwat...



Timestamps
00:00 intro
00:19 functools cache
02:05 IPRoyal
03:10 Requests-cache
07:06 FastAPI with Cache
پارسال در تاریخ 1401/12/08 منتشر شده است.
11,343 بـار بازدید شده
... بیشتر