mozillahispano / smw-reminder

Email reminders for semantic mediawiki data
http://www.mozilla-hispano.org
6 stars 3 forks source link

Use python urllib2 to retrieve data instead of wget or bash commands #4

Closed willyaranda closed 12 years ago

willyaranda commented 12 years ago

Something like this:

json_tareas = urllib2.urlopen('https://www.mozilla-hispano.org/documentacion/Especial:Ask/-5B-5BCategor%C3%ADa:Tarea-5D-5D-5B-5Bestado::!Finalizado-5D-5D/-3FResponsable%3DRespon./-3FArea/-3FProyecto/-3FEstado/-3FFechafin%3DL%C3%ADmite/mainlabel%3D/order%3DASC,ASC/sort%3DFechafin,Estado/format%3Djson').read()
tareas = json.loads(json_tareas)
json_colab = urllib2.urlopen('https://www.mozilla-hispano.org/documentacion/Especial:Ask/-5B-5BCategoría:Colaborador-5D-5D/-3FCorreo/mainlabel%3D/format%3Djson').read()

I've just tested this and works, so just use it.