introd u ction to apis and jsons
play

Introd u ction to APIs and JSONs IN TE R ME D IATE IMP OR TIN G - PowerPoint PPT Presentation

Introd u ction to APIs and JSONs IN TE R ME D IATE IMP OR TIN G DATA IN P YTH ON H u go Bo w ne - Anderson Data Scientist at DataCamp APIs Application Programming Interface Protocols and ro u tines B u ilding and interacting w ith so w


  1. Introd u ction to APIs and JSONs IN TE R ME D IATE IMP OR TIN G DATA IN P YTH ON H u go Bo w ne - Anderson Data Scientist at DataCamp

  2. APIs Application Programming Interface Protocols and ro u tines B u ilding and interacting w ith so �w are applications INTERMEDIATE IMPORTING DATA IN PYTHON

  3. APIs Application Programming Interface Protocols and ro u tines B u ilding and interacting w ith so �w are applications INTERMEDIATE IMPORTING DATA IN PYTHON

  4. JSONs Ja v aScript Object Notation Real - time ser v er - to - bro w ser comm u nication Do u glas Crockford H u man readable INTERMEDIATE IMPORTING DATA IN PYTHON

  5. JSONs INTERMEDIATE IMPORTING DATA IN PYTHON

  6. JSONs INTERMEDIATE IMPORTING DATA IN PYTHON

  7. JSONs INTERMEDIATE IMPORTING DATA IN PYTHON

  8. Loading JSONs in P y thon import json with open('snakes.json', 'r') as json_file: json_data = json.load(json_file) type(json_data) dict INTERMEDIATE IMPORTING DATA IN PYTHON

  9. E x ploring JSONs in P y thon for key, value in json_data.items(): print(key + ':', value) Title: Snakes on a Plane Country: Germany, USA, Canada Response: True Language: English Awards: 3 wins & 7 nominations. Year: 2006 Actors: Samuel L. Jackson, Julianna Margulies Runtime: 105 min Genre: Action, Adventure, Crime imdbID: tt0417148 Director: David R. Ellis imdbRating: 5.6 Rated: R Released: 18 Aug 2006 INTERMEDIATE IMPORTING DATA IN PYTHON

  10. Let ' s practice ! IN TE R ME D IATE IMP OR TIN G DATA IN P YTH ON

  11. APIs and interacting w ith the w orld w ide w eb IN TE R ME D IATE IMP OR TIN G DATA IN P YTH ON H u go Bo w ne - Anderson Data Scientist at DataCamp

  12. Herein , y o u’ ll learn What APIs are Wh y APIs are important In the e x ercises : Connecting to APIs P u lling data from APIs Parsing data from APIs INTERMEDIATE IMPORTING DATA IN PYTHON

  13. What is an API ? Set of protocols and ro u tines B u nch of code Allo w s t w o so �w are programs to comm u nicate w ith each other INTERMEDIATE IMPORTING DATA IN PYTHON

  14. What is an API ? Set of protocols and ro u tines B u nch of code Allo w s t w o so �w are programs to comm u nicate w ith each other INTERMEDIATE IMPORTING DATA IN PYTHON

  15. APIs are e v er yw here INTERMEDIATE IMPORTING DATA IN PYTHON

  16. APIs are e v er yw here INTERMEDIATE IMPORTING DATA IN PYTHON

  17. APIs are e v er yw here INTERMEDIATE IMPORTING DATA IN PYTHON

  18. APIs are e v er yw here INTERMEDIATE IMPORTING DATA IN PYTHON

  19. Connecting to an API in P y thon import requests url = 'http://www.omdbapi.com/?t=hackers' r = requests.get(url) json_data = r.json() for key, value in json_data.items(): print(key + ':', value) INTERMEDIATE IMPORTING DATA IN PYTHON

  20. What w as that URL ? h � p - making an HTTP req u est www. omdbapi . com - q u er y ing the OMDB API ?t=hackers Q u er y string Ret u rn data for a mo v ie w ith title ( t ) ‘ Hackers ’ 'http://www.omdbapi.com/?t=hackers' INTERMEDIATE IMPORTING DATA IN PYTHON

  21. OMDb API INTERMEDIATE IMPORTING DATA IN PYTHON

  22. OMDb API INTERMEDIATE IMPORTING DATA IN PYTHON

  23. It ’ s a reg u lar URL ! INTERMEDIATE IMPORTING DATA IN PYTHON

  24. Let ' s practice ! IN TE R ME D IATE IMP OR TIN G DATA IN P YTH ON

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend