[13:47:15] hall1467: o/ [13:47:30] My laptop died and I'm not by an outlet for a little bit [13:47:45] o\ [13:47:47] But my phone has IRC :D [13:48:09] Great :) [13:56:39] Let me look at the documentation for Requests quickly [13:57:08] So yeah. I was saying that I mwxml should theoretically be able to handle request.raw as a file like object [13:57:20] However you'll need to stream decompress it [13:58:32] The Right(TM) way to do this would be by implementing it in mwtypes.files [14:01:23] https://github.com/mediawiki-utilities/python-mwtypes/blob/master/mwtypes/files/functions.py [14:02:26] This set of methods will handle any mediawiki compression format. [14:02:41] You could extend this to also handle urls [14:04:24] Does that make sense? [14:05:29] I see. I think it does mostly, trying to figure out what changes would need to occur to functions.py [14:09:08] * halfak got a charger from crang :D [14:10:32] Looks like urllib2.urlopen might also do the trick as well [14:10:34] https://docs.python.org/2/library/urllib2.html [14:12:06] Have you used that before? [14:13:20] hall1467, I strongly recommend the requests library, but yes, that would work. [14:13:50] Also, python 3 has no urllib2 ;) [14:13:51] https://docs.python.org/3/library/urllib.html [14:16:40] Haha good catch [14:16:56] What is the advantage of requests over urllib? [14:17:59] It's less insane [14:18:16] Nearly universally agreed upon by the python community [14:21:44] Okay haha. So, at a high level, what would need to change in functions.py?