Skip to content

Instantly share code, notes, and snippets.

@ywchiu
Created June 13, 2016 07:32
Show Gist options
  • Save ywchiu/b0be2b78e9ebff4e5661252780da5590 to your computer and use it in GitHub Desktop.
Save ywchiu/b0be2b78e9ebff4e5661252780da5590 to your computer and use it in GitHub Desktop.
import requests
headers = {
'User-Agent':'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.84 Safari/537.36'
}
res=requests.get('https://tw.stock.yahoo.com/q/q?s=2330', headers = headers)
print res.text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment