Тёмный

Make API Calls Like a PRO - Python API Client x Shopify 

John Watson Rooney
Подписаться 82 тыс.
Просмотров 37 тыс.
50% 1

How to use a session object to make a more robust API client with Python
Patreon: / johnwatsonrooney
Donations: www.paypal.com...
Proxies: iproyal.club/J...
Hosting: Digital Ocean: m.do.co/c/c7c9...
Gear I use: www.amazon.co....

Наука

Опубликовано:

 

11 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 63   
@ZhCrypto
@ZhCrypto 2 года назад
You are the best Python Tutor in whole world , Love you a lot bcz of scraping & automation tips and tricks
@JohnWatsonRooney
@JohnWatsonRooney 2 года назад
So nice of you!
@CodePhiles
@CodePhiles 2 года назад
Excellent job John, every video you provide , you add the level up, thank you John.
@JohnWatsonRooney
@JohnWatsonRooney 2 года назад
I appreciate that! thank you
@gabrieljeca
@gabrieljeca 2 года назад
Love how your thumbnails makes me think I’m a half-ass programmer. And I also love how your content proves that indeed I’m a half-ass programmer. Amazing content JWR! Learning more and more each day with your videos
@djangodeveloper07
@djangodeveloper07 2 года назад
something new i learned today. i was scraping from last 3 years and never use this thing this way. Thank you for sharing. Thumbs Up
@systematical88
@systematical88 Год назад
Such a good video... exactly what I needed (and didn't even know it).
@shanevarnum
@shanevarnum 2 года назад
Good stuff. Thanks for all of the time and effort you put into your videos. Love the web scraping info. And would really like to see more on APIs. Python OOP building API clients.
@Jakobowsky
@Jakobowsky Год назад
This is super useful. I am using sessions mostly when dealing with authentication, so I am logged in once :) Thanks John!
@aflous
@aflous Год назад
Use session's 🍪 ;)
@ferrandonea
@ferrandonea 2 года назад
Excellent video , as usual, I have been struggling with catching exceptions and retries with requests , probably that could be interesting for another video
@mabdurrafeyahmed9256
@mabdurrafeyahmed9256 2 года назад
Awesome, always love watching your videos, always helpful
@marcosdanielreyesgarces2261
@marcosdanielreyesgarces2261 2 года назад
Thank you so much! This is exactly what I've been looking for
@JohnWatsonRooney
@JohnWatsonRooney 2 года назад
Thanks for watching!
@abrartareen100
@abrartareen100 Год назад
Thank you, John. Another very useful tutorial. Excellent job!
@PeterBruno1
@PeterBruno1 Год назад
Thank you. Was looking for a simple introduction to better re-use of sessions. Question/suggestion - why not use: "if int(calls_left[0]) == int(calls_left[1]) - 1:"
@gh0sthussi3n83
@gh0sthussi3n83 Год назад
man, it always fascinats me that you're using i3 great channel and great content overall dude keep it up ❤️
@JohnWatsonRooney
@JohnWatsonRooney Год назад
Thanks! And yeah can’t live without i3 now
@PolSenserrich
@PolSenserrich Год назад
Really great explanation. Thanks
@deeperblue77
@deeperblue77 2 года назад
Thanks John! Very valuable. Chris
@JohnWatsonRooney
@JohnWatsonRooney 2 года назад
Thanks Chris glad you enjoyed it
@felipemartinsdiel
@felipemartinsdiel 2 года назад
This is awesome. Thanks a lot! 👍
@cardosofede
@cardosofede 2 года назад
Awesome John! Can you make a video using a Throttler instead?
@kamutabung511
@kamutabung511 Год назад
i found good tutor here, thanks you earn my subcribe
@JohnWatsonRooney
@JohnWatsonRooney Год назад
Thanks for the sub!
@geehaf
@geehaf Год назад
Great vid. Very useful - thanks.
@jagdish1o1
@jagdish1o1 2 года назад
Damn! Thanks man. Really helpful ❤️
@JohnWatsonRooney
@JohnWatsonRooney 2 года назад
Thanks appreciate it!
@Rocky_.6
@Rocky_.6 2 года назад
why is my gms softing like static?
@evolv_85
@evolv_85 Год назад
Awesome vid.
@cpurper
@cpurper 2 года назад
You are a legend
@deadspeedv
@deadspeedv 2 месяца назад
Cool way to do it. Unfortunately for me the API rate limit isn't in the header....or anyway
@mahedulhasan5515
@mahedulhasan5515 2 года назад
super dope... thanks
@_manasikara
@_manasikara Год назад
AttributeError: module 'creds' has no attribute 'token'
@rizalsofyans
@rizalsofyans 2 года назад
Thank you!
@dragon3602010
@dragon3602010 2 года назад
Awesome thanks, is there another use cases with hooks in python?
@JohnWatsonRooney
@JohnWatsonRooney 2 года назад
Common uses are error handling and logging, along with what I showed here. Or anything other that you might have specifically!
@cdemafia
@cdemafia 2 года назад
Thanks, very useful. BTW, which color scheme are you using?
@PeterFletcherDNADeliverer
@PeterFletcherDNADeliverer 2 года назад
Great info thank you
@JohnWatsonRooney
@JohnWatsonRooney 2 года назад
Thanks for watching
@PolSenserrich
@PolSenserrich Год назад
It Would be a greatfull video if you teach us how to make Bulk operations with this python API to Shopify. For example, updating stock to a large list of products is kind of dificult.
@JohnWatsonRooney
@JohnWatsonRooney Год назад
Hey thanks, good idea I will look into it
@mohamednashaat4288
@mohamednashaat4288 2 года назад
How co when you clicked in your gms soft the notes were so short and when I play mine they roll over each other?
@strawberriesandcum
@strawberriesandcum 2 года назад
I had no idea you can use hooks this will be very useful thank you John also how would you go about a session restart once it was forcibly closed and use that one instead of the old one?
@JohnWatsonRooney
@JohnWatsonRooney 2 года назад
They are quite useful! If you are using a context manager they will close automatically once done, otherwise there’s a session.close() function to do it for you
@vinni113
@vinni113 Год назад
Great tutorial as always. Do you know of a way to find an API rate limit from an API that doesn't return a limit header?
@JohnWatsonRooney
@JohnWatsonRooney Год назад
It’s usually returned there, sometimes in the body too - if you aren’t sure what it is I would check the api docs and see how it handles rates
@vinni113
@vinni113 Год назад
@@JohnWatsonRooney thanks for the reply. Unfortunately not using an API that is being advertised haha so unlikely I'll be finding out that info
@Karma-xz4si
@Karma-xz4si Год назад
Very informative. Does anyone know how to get all the customer records or get the next page URL. The API call return 250 records at max and in my case I am not able to find the next page URL.
@goodnight4606
@goodnight4606 2 года назад
Thank for the video Some websites know that iam using slenium . How can i avoid that ?
@kattoman7548
@kattoman7548 Год назад
Hi guys I am starting on python, please can you tell me which code editor John is using? cheers
@JohnWatsonRooney
@JohnWatsonRooney Год назад
Hey, this is PyCharm community edition (free). I prefer it to vs code
@kattoman7548
@kattoman7548 Год назад
@@JohnWatsonRooney thanks so much
@IllIlIllIIIl
@IllIlIllIIIl 2 года назад
Any tips for avoiding/bypassing post request 405 method not allowed if selenium alternative is too slow for my needs? Ty
@larryrennoldson4937
@larryrennoldson4937 2 года назад
You can’t 405 means the method is wrong, so try performing the request with GET instead
@sonnguyenhong269
@sonnguyenhong269 Год назад
Hello John Watson Rooney I don't know where to find 'import creds' can you help with this
@_manasikara
@_manasikara Год назад
no, he is too busy
@MrUSmarines1
@MrUSmarines1 2 года назад
Hey John, I been taking 100 days of python course on udemy and stuck on one of the capstone api projects. Any way you can do a tutorial for us rookies? I could send you the instructions. I tried for weeks but i'm at a point where i need an expert step by step video. I'm sure your viewers could benefit. Thanks
@bakasenpaidesu
@bakasenpaidesu 2 года назад
;)
@MDPARVEZ-np6wl
@MDPARVEZ-np6wl 2 года назад
Mlk, se pá que o canal foi hackeado
@dopy8418
@dopy8418 2 года назад
Your rythm was better before. Slow the pace down just a bit. Feels rushed.
Далее
🍏 Устарели ОФИЦИАЛЬНО! 🤡
00:32
Cursor Is Beating VS Code (...by forking it)
18:00
Просмотров 70 тыс.
The most important Python script I ever wrote
19:58
Просмотров 194 тыс.
OpenAI Strawberry is LIVE
Просмотров 4,7 тыс.
How To Scrape (almost) ANY Website with Python
13:45
Просмотров 38 тыс.
How I Organize Data In Python with Dataclasses
10:04
Просмотров 28 тыс.
How I run my Python scripts everyday in the cloud
17:11
Modern Graphical User Interfaces in Python
11:12
Просмотров 1,5 млн
Don't Keep Requesting API Data, DO THIS!
9:52
Просмотров 11 тыс.
ГЛАВНЫЙ МИНУС #iPhone16ProMax 🤡
0:40
Просмотров 152 тыс.
iPhone 16 CHIQDI - Nima o'zgarishlar bor?
13:59
Просмотров 210 тыс.
iPhone 16 - презентация Apple 2024
1:00
Просмотров 129 тыс.
Как вам iPhone 16? 😅
0:50
Просмотров 88 тыс.