Skip to content

Instantly share code, notes, and snippets.

@carpedm20
Created September 23, 2015 11:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carpedm20/205d02e304281c72a15a to your computer and use it in GitHub Desktop.
Save carpedm20/205d02e304281c72a15a to your computer and use it in GitHub Desktop.
import requests
r = requests.get("http://naver.com")
html = r.text
idx = html.find("<title>")
print html[idx:idx+20]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment