O'Reilly logo

Learn to Program with Python 3: A Step-by-Step Guide to Programming by Irv Kalb

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

© Irv Kalb 2018
Irv KalbLearn to Program with Python 3https://doi.org/10.1007/978-1-4842-3879-0_10

10. Internet Data

Irv Kalb1 
(1)
Mountain View, California, USA
 

In the previous two chapters, we discussed different ways to get and manipulate strings. That makes this our third chapter on strings. Earlier, I talked about how a program can get text input from the user by using a call to input. In the previous chapter, I showed how a program could get data from and save data to a file. But there is another place where programs can get text data from: the Internet!

This chapter discusses the following topics:
  • Request/response model

  • Getting a stock price

  • Pretending to be a browser

  • API

  • Requests with values

  • API Key

  • Example program to get stock price information ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required