Making multiple HTTP requests using Python (synchronous, multiprocessing, multithreading, asyncio)

  Рет қаралды 90,531

Indian Pythonista

Indian Pythonista

Күн бұрын

Пікірлер: 85
@IndianPythonista
@IndianPythonista 4 жыл бұрын
Code: github.com/nikhilkumarsingh/async-http-requests-tut Multiprocessing in Python: kzbin.info/www/bejne/gKaXqZ6se9JjbdE Multithreading in Python: kzbin.info/www/bejne/kIGwaYd5r5qWmpo Concurrent Programming in Python (asyncio): kzbin.info/www/bejne/r2mYeGp9gb6bj6M
@ibrahimaba8966
@ibrahimaba8966 3 жыл бұрын
.. can we use multiprocessing and multithreading at the same time ? I mean having n processes and m thread per process.
@savantofillusions
@savantofillusions 2 жыл бұрын
Your snake art got me to stay
@praisedavid1653
@praisedavid1653 3 жыл бұрын
This is the most informative video I have seen on these features/modules. Kudos
@zameerahmed1775
@zameerahmed1775 2 жыл бұрын
Ur too good .............. youthful & motivating voice. Above all ur python concepts are up to the mark.
@Millez
@Millez Жыл бұрын
0:59 Synchronous 4:23 Multiprocessing 7:43 Multithreading 15:23 AsyncIO
@learnerb3403
@learnerb3403 2 жыл бұрын
Incredible video sir with clarity in presentation and in depth knowledge. Thanks for sharing your knowledge. Looking forward for more such real time example videos.
@shokhrukhabduahadov3985
@shokhrukhabduahadov3985 4 жыл бұрын
would be better if u put bookmarks to the video parts
@sudhakarpandey693
@sudhakarpandey693 3 жыл бұрын
If someone explaining so nicely then plz don't mark 👎...if he is missing something then tell him personally.... don't make his moral down...I found his vedio perfect 👍thanks frnd
@krishjodu3767
@krishjodu3767 2 жыл бұрын
Thanks for your wonderful video bro, It's raising AssertionError at timer
@d7q0hdjfq39h
@d7q0hdjfq39h 4 жыл бұрын
You explain pretty well sir.... Learning Python from you is such a honour for me.
@d7q0hdjfq39h
@d7q0hdjfq39h 4 жыл бұрын
God save my english.
@zakaria.morchid
@zakaria.morchid 4 жыл бұрын
I like those stuff here too
@Kamehamehax21
@Kamehamehax21 5 ай бұрын
Thank you for this video. Nice explanation.
@gregorybutcher2647
@gregorybutcher2647 3 жыл бұрын
Awesome video! Just one question: Do take different amount of processing power? if so which is more efficient, multithreading or asynio?
@bufmouse13
@bufmouse13 2 жыл бұрын
Incredible video, thank you! Im trying to find ways to turn three scripts that run a AI art generating bot into one and I think some of your examples is really going to help.
@vishalwaghmare3130
@vishalwaghmare3130 2 жыл бұрын
Best video on this topic
@rajii515
@rajii515 Жыл бұрын
Thankyou for this video by the way.. it helps me a lot 👍👍
@eduardogil1775
@eduardogil1775 3 жыл бұрын
Excellent explanation, Thanks for sharing! 👍🏼
@mashoodurrehman9840
@mashoodurrehman9840 4 жыл бұрын
Awesome.... keep making stuff like that.
@samirbhattarai3441
@samirbhattarai3441 4 жыл бұрын
Nicely demonstrated. Great.👏
@techqsr
@techqsr Жыл бұрын
Informative 😍
@SurendraTarai
@SurendraTarai 3 жыл бұрын
you are awesome, well explained... appreciate it. keep it up
@mahdisecurity1700
@mahdisecurity1700 4 жыл бұрын
hi your video is very good subject. but for later video please : multiple function multiple sync multiple function multiple async multiple function multiple threading multiple function multiple processing and combine all concepts with simple language . thank you very much . god willing
@drissaitkassimusic
@drissaitkassimusic 3 жыл бұрын
Best video to understand this tipic
@michelromero7671
@michelromero7671 3 жыл бұрын
Thanks for this video, I didn't actually watched it because of the great thumbnail that told me what I came looking for. (I left a like tho)
@m.alaiady3627
@m.alaiady3627 3 жыл бұрын
Nice explanation
@getconsiousstate
@getconsiousstate 3 жыл бұрын
Any reason why ProcessPoolExecuter is not used for multiprocessing ? and what about multiprocessing.pool.ThreadPool ? Any Idea why these many modules are created for same functionality in Python ?
@JamalanJuda
@JamalanJuda 2 жыл бұрын
What if I have a list of different URLs that I want to do GET from? How can I apply multithreading in that scenario?
@josephomondi629
@josephomondi629 3 ай бұрын
great video buddy
@bhola8023
@bhola8023 Жыл бұрын
Which OS u are using and what's that theam
@Berkeozbeek
@Berkeozbeek 2 жыл бұрын
Could you please tell me how I can return the data printed from fetch() function in multithreadding? Whenever I tried to return it, t always gives me None for some reason but I can print it without any problem.
@kiyotaka627
@kiyotaka627 4 жыл бұрын
thank you for this well designed video, very informative.
@adnankaya
@adnankaya 2 жыл бұрын
Great tutorial! Thanks for sharing.
@yt-1161
@yt-1161 2 жыл бұрын
@13:46 what are the downsides of having too many max_workers ?
@Василий-й1у
@Василий-й1у 2 жыл бұрын
этому типу надо памятник поставить( в хорошем смысле :) )
@maba7097
@maba7097 Жыл бұрын
Thank you for the video I have an app that I integrated with api. I send a message to it and it analyzes it and then returns a result t, but when I send many messages at the same time, it does not go well and you get a mess In my case, what solves my problem from what you mentioned?
@ncjatin
@ncjatin 2 жыл бұрын
I have a question... Example in synchronous code.... We are only defining methods not calling it... Than also methods are running
@googlemonkey7746
@googlemonkey7746 4 жыл бұрын
Nice explained
@arjunchatterjee5667
@arjunchatterjee5667 2 жыл бұрын
superb video!
@FRUXT
@FRUXT 2 жыл бұрын
Why no subtitles ?
@TheJBardopoulos
@TheJBardopoulos 3 жыл бұрын
and what's the limit for max-workers (depends on my PC, I know, but how to find the limit?)
@vsanjairaj
@vsanjairaj 3 жыл бұрын
I have to get status codes for 150k urls in a data frame. I want a new columns 'status' in the df and i want the response code of the request of url. What's the best way to do it?
@akhil3365
@akhil3365 3 жыл бұрын
what is the difference between qrequests and asyncio
@KirillBezzubkine
@KirillBezzubkine 2 жыл бұрын
The video is good. BUT: how would you make 10000 http requests when the api supports about 50 requests only at a time (otherwise it throws 429 error)? I need help with that. Thank you
@kattynip0
@kattynip0 2 жыл бұрын
need to rotate IP
@saurabhverma6108
@saurabhverma6108 Жыл бұрын
@@kattynip0 what solution did you find for it?
@TanviAravind
@TanviAravind 4 жыл бұрын
Thanks for making this video of Asyncio hope it covers web scrapping
@TanviAravind
@TanviAravind 4 жыл бұрын
I had finished python asyn await and aiohttp during the weekend... earlier it used to take 40 to 50 mins to scrap the data after aiohttp and Asyncio implementation it's just 90 Seconds
@d7q0hdjfq39h
@d7q0hdjfq39h 4 жыл бұрын
@@TanviAravind yea it's such a time saving during projects.
@PGhai
@PGhai 4 жыл бұрын
Nikhil Bhai, do u also teach one on one?
@IndianPythonista
@IndianPythonista 4 жыл бұрын
Hi. No plans to do that yet.
@AngelGonzalez-kl8oi
@AngelGonzalez-kl8oi 2 жыл бұрын
Great!
@veereshgs5298
@veereshgs5298 3 жыл бұрын
Great 👍
@bhaveshmevada8424
@bhaveshmevada8424 3 жыл бұрын
Bro i want to post json data with requests.post method and i did it but it takes very long time to send all data...plz help me
@nelsonkenmochi9353
@nelsonkenmochi9353 3 жыл бұрын
Nice video, thanks for that. :)
@poojagautam1406
@poojagautam1406 3 жыл бұрын
Amazing tutorial! Thanks a lot.
@_sharmaji.dev_
@_sharmaji.dev_ 4 жыл бұрын
AWESOME!!!! REALLY HELPED.
@deepanshuchoudhary4598
@deepanshuchoudhary4598 2 жыл бұрын
God bless you
@lazypunk794
@lazypunk794 3 жыл бұрын
Great job mate
@yellie5629
@yellie5629 3 жыл бұрын
Can I organize and post your lecture on my blog, Medium? I will leave a reference.
@kirtimali723
@kirtimali723 2 жыл бұрын
my main function is not calling... can you help me with it?
@ncjatin
@ncjatin 2 жыл бұрын
Just cross-check.. have you out @timer(1,1) before main function ?
@sulaymanali8080
@sulaymanali8080 4 жыл бұрын
really great. thanks a lot
@YuvrajSingh-pz7wt
@YuvrajSingh-pz7wt 4 жыл бұрын
Can u plzzz makr video on topic of what is channel in django and make chatting app ..plz sir
@EnglishRain
@EnglishRain 4 жыл бұрын
Brilliant video, thanks a lot!
@dm-vh9yu
@dm-vh9yu 4 жыл бұрын
Great video, keep it up
@Duychienvt
@Duychienvt Жыл бұрын
I think threadings are running inside one process. It is impossible to do faster than multil-processing. The reasons that your multithreading is faster : may be this is running multithreading inside multiprocessing Check out this video: kzbin.info/www/bejne/m5SuiJyXfah4gdU
@abhisekkeshari4850
@abhisekkeshari4850 Жыл бұрын
Could you please add the timestamp of the methods that would be a great help
@hgt3
@hgt3 Жыл бұрын
thank you
@mithunnambiar1433
@mithunnambiar1433 4 жыл бұрын
An assertion error is stopping me from the synchronous method. does anyone experienced the same problem?
@radiozamindar4710
@radiozamindar4710 3 жыл бұрын
hello bro can i have some help ?
@trickdigger5744
@trickdigger5744 4 жыл бұрын
Sir, Kindly check the pull request made on github.
@ashishsondagar2812
@ashishsondagar2812 3 жыл бұрын
15:25 asyncio
@nirakarpadhy
@nirakarpadhy 3 жыл бұрын
!!! PETITION for making tutorials using examples of "POST" requests !!! @IndianPythonista Why does every tutorial and blog post always assume we only only need "get" requests? I try to implement the same code for "post" requests and I run into all sorts of errors. I wish you or someone on this earth for once did tutorials for fast http post requests.
@switchblade3868
@switchblade3868 3 жыл бұрын
Ahats that linux???
@peterchao7429
@peterchao7429 2 жыл бұрын
Great video, I have learned a lot here. One question I have is, instead of get HTTP request, what if I want to do post request?
@giorgosK936
@giorgosK936 2 жыл бұрын
naughty boy
@kumarnitish6552
@kumarnitish6552 3 жыл бұрын
Are you sure of the time calculation using a timer, because it seems like coding is taking more than what it prints in the console? Your timer logic is not correct
@MythologyMystics
@MythologyMystics 4 жыл бұрын
Sir, can you let me know how to integrate asyncio to call multiple cameras to take a multiple angle picture once at a time.like using picamera over raspberry Pi. Thank you
@MrPedala94
@MrPedala94 4 жыл бұрын
sounds to me like you can just do that in a sequential manner.
@Picker22
@Picker22 4 жыл бұрын
dint understand all this sorry
Python Asyncio, Requests, Aiohttp | Make faster API Calls
17:56
Patrick Collins
Рет қаралды 135 М.
threading vs multiprocessing in python
22:31
Dave's Space
Рет қаралды 590 М.
The Singing Challenge #joker #Harriet Quinn
00:35
佐助与鸣人
Рет қаралды 30 МЛН
Family Love #funny #sigma
00:16
CRAZY GREAPA
Рет қаралды 43 МЛН
They Chose Kindness Over Abuse in Their Team #shorts
00:20
I migliori trucchetti di Fabiosa
Рет қаралды 12 МЛН
When u fight over the armrest
00:41
Adam W
Рет қаралды 23 МЛН
Plotting Choropleth Maps using Python (Plotly)
30:38
Indian Pythonista
Рет қаралды 94 М.
Async for loops in Python
16:36
mCoding
Рет қаралды 66 М.
Next-Level Concurrent Programming In Python With Asyncio
19:19
ArjanCodes
Рет қаралды 180 М.
Python Asynchronous Programming - AsyncIO & Async/Await
25:57
Tech With Tim
Рет қаралды 431 М.
Python is NOT Single Threaded (and how to bypass the GIL)
10:23
Jack of Some
Рет қаралды 110 М.
Coding a Web Server in 25 Lines - Computerphile
17:49
Computerphile
Рет қаралды 343 М.
This Is Why Python Data Classes Are Awesome
22:19
ArjanCodes
Рет қаралды 813 М.
The Singing Challenge #joker #Harriet Quinn
00:35
佐助与鸣人
Рет қаралды 30 МЛН