Don't Keep Requesting API Data, DO THIS!

Опубликовано: 27 Февраль 2023
на канале: John Watson Rooney
11,937
430

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:   / 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


Смотрите видео Don't Keep Requesting API Data, DO THIS! онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь John Watson Rooney 27 Февраль 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 11,93 раз и оно понравилось 43 людям.