Closed Pokechu22 closed 2 years ago
This relies on generateXMLDump() and getXMLHeader() actually passing the session
variable, otherwise it will fail. Maybe we should handle the default value None
here?
I'm not entirely sure about how the defaults are handled here. getXMLHeader
calls getXMLPage
which calls getXMLPageCore
which directly calls session.post
. I'm not really sure why the argument even is optional.
session.get
uses our configured User-Agent, whilerequests.get
uses the default one. Needed forpython2 -u dumpgenerator.py --xml --xmlrevisions --images https://fidopedia.fido.de/
, as that site rejects the requests user agent.(That site also requires other stuff; see this branch (perma), though that's not fully complete.)