How to Write Python Scripts to Analyze JSON APIs and Sort Results
Corey Schafer Corey Schafer
1.31M subscribers
158,118 views
0

 Published On Apr 9, 2019

In this Python Programming Tutorial, we will be learning how to grab data from a JSON API, parse out the information we want, and then sort the data using a custom key. The API we will be using is a JSON API for Homebrew Packages and we will be sorting the packages by their popularity. We cover a lot of topics in this tutorial. We will be using the Requests Library, converting to/from JSON, reading and writing to files, writing our own sorting function, and more. Let's get started...

Homebrew Packages - https://formulae.brew.sh/formula/
Homebrew Analytics - https://formulae.brew.sh/analytics/

Requests Tutorial -    • Python Requests Tutorial: Request Web...  
JSON Tutorial -    • Python Tutorial: Working with JSON Da...  
Sorting Tutorial -    • Python Tutorial: Sorting Lists, Tuple...  
List Comprehensions -    • Python Tutorial: Comprehensions - How...  

✅ Support My Channel Through Patreon:
  / coreyms  

✅ Become a Channel Member:
   / @coreyms  

✅ One-Time Contribution Through PayPal:
https://goo.gl/649HFY

✅ Cryptocurrency Donations:
Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33
Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot

✅ Corey's Public Amazon Wishlist
http://a.co/inIyro1

✅ Equipment I Use and Books I Recommend:
https://www.amazon.com/shop/coreyschafer

▶️ You Can Find Me On:
My Website - http://coreyms.com/
My Second Channel -    / coreymschafer  
Facebook -   / coreymschafer  
Twitter -   / coreymschafer  
Instagram -   / coreymschafer  

#Python #JSON #API

show more

Share/Embed