Skip to content

Instantly share code, notes, and snippets.

@kojoidrissa
Last active October 19, 2015 20:55
Show Gist options
  • Select an option

  • Save kojoidrissa/e72cc1a71975673516a3 to your computer and use it in GitHub Desktop.

Select an option

Save kojoidrissa/e72cc1a71975673516a3 to your computer and use it in GitHub Desktop.

Revisions

  1. kojoidrissa revised this gist Oct 19, 2015. No changes.
  2. kojoidrissa created this gist May 9, 2015.
    9 changes: 9 additions & 0 deletions gistfile1.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    from urllib2 import urlopen

    # Open http://placekitten.com/ for reading on line 4!
    kittens = urlopen('http://placekitten.com/')
    response = kittens.read()
    body = response[559:1000]

    # Add your 'print' statement here!
    print body