How To Retry HTTP Requests Using a Decorator in Python

preview_player
Показать описание
Failed requests to a server can cause us all sorts of issues, but rather than just handle the exception and log it away, retry it X amount of times using a retry decorator like this one.

Support Me:

-------------------------------------
Disclaimer: These are affiliate links and as an Amazon Associate I earn from qualifying purchases
-------------------------------------
Рекомендации по теме
Комментарии
Автор

This is the most useful video on decorator I've ever come across. Most of the videos on your channel are really great. You do deserve millions of subscribers. Keep it up man!!

sim
Автор

I once learn about decorator but don't know how to implement it in web scraping script. Thanks John I learn something new today

adnanpramudio
Автор

Great content John, please keep it up! Your videos are definitely suitable to have thousands people more watching them ;)

shanx
Автор

More videos like this please! Awesome vid. Thank you!

Moist_yet_Crispy
Автор

I always find something cool and interesting here on this Channel.

maciekpaciarski
Автор

I need to buy you a pint, your videos have been invaluable to me, thank you so much.

youhuwtube
Автор

Nice very very understandable content especially for a novice like me thanks

arff
Автор

Please don’t stop creating videos ever you will get 100K soon believe me.

ammaralzhrani
Автор

First this time😉. Will watch later on as I know life good content again 👍

graczew
Автор

A page needs scrolling down before rendering full content that one may want to scrap. requests-html render provides scrolldown and selenium/helium may have something to offer.
What is the best option? What would be your recommendation?

higheringai
Автор

You were using vs code earlier. Why switched to pycharm?

senthilsds
Автор

request return same data every time, is there any way to get all time fresh data through request in python? I tried many solution looking for working solution

akashdarji