in this video I look at using inheritance and subclasses with python to create a simple API client class to make requesting data from the shopify API easier. There is a Python SDK for Shopify but I wanted to make my own simpler client I can reuse to grab data from stores. Using "super()" we can inherit from the requests.Session class and add in the few bits we need, to manage the rate limiting and sending the token for each request.
https://github.com/jhnwr/youtube/tree...
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...