Skip to content

Instantly share code, notes, and snippets.

@juanriaza
Created September 29, 2011 17:52
Show Gist options
  • Save juanriaza/1251409 to your computer and use it in GitHub Desktop.
Save juanriaza/1251409 to your computer and use it in GitHub Desktop.
check mrw
# -*- 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])
@dvdbng
Copy link

dvdbng commented Sep 29, 2011

WIN

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment