Created
September 29, 2011 17:52
-
-
Save juanriaza/1251409 to your computer and use it in GitHub Desktop.
check mrw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from __future__ import print_function | |
import requests | |
from lxml.html import fromstring | |
map(lambda event: print("Status: %(status)s Fecha: %(date)s Hora: %(hour)s" % dict([(e.attrib['class'], e.text) for e in event if 'class' in e.attrib])), fromstring(requests.get('http://mrw.es/seguimiento_envios/MRW_historico_nacional.asp?enviament=026928458321').content).cssselect('.zebra')[0][1]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
WIN