This forum is now read-only. Please use our new forums at

How to use APIs with Python Forum

View Course

338 points
Submitted by
Yeshwanth Kumar
about 3 years ago

6/20 Cannot under the text attribute usage.

How to make this work? I dont understand,
import requests

     # Make a GET request here and assign the result to kittens:
     kittens = requests.get("")

      text ???
      print  kittens.text[559:1000]   

1 vote


this is the complete code

import requests

kittens = requests.get("")
print kittens.text[559:1000]

380 points
Submitted by
almost 3 years ago