Skip to content

Instantly share code, notes, and snippets.

View largocreatura's full-sized avatar

Julián Pérez largocreatura

View GitHub Profile
@muimota
muimota / stocks.py
Last active July 23, 2016 18:34
Grabs stocks values from Yahoo finance
#martin@muimota.com
#grabs stocks values from Yahoo finance
from lxml import html
import urllib2
#curl -vs https://es.finance.yahoo.com/q?s=ITX.MC 2>/dev/null | xmllint --html --xpath '//*[@id="yfs_l84_itx.mc"]' - 2>/dev/null
def query(symbol):
url = 'http://finance.yahoo.com/quote/{}'.format(symbol.upper())