Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to reconstruct XML from the pages API #429

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Commits on Apr 11, 2022

  1. Merged

    Add support to backup pages using API:Query instead of Special:Export
    WikiTeam#280
    
    into recent version of dumpgenerator.py
    
    Adds additional parameter: --apiexport
    which uses a query request instead of submit on api.php which works
    without Special:Export which is disabled on some sites.
    GERZAC1002 committed Apr 11, 2022
    Configuration menu
    Copy the full SHA
    5e1978e View commit details
    Browse the repository at this point in the history
  2. Improvements over previous commit:

     -renamed --apiexport to '--apiquery' and gave it a more useful help text
     -renamed function 'getXMLPage_' to 'selectXMLQuerMode' to make it distinct enough from 'getXMLPage'
     -added in checks so that '--apiquery' can only be used together with '--curonly'
     -dialed back some timeouts from 120 to 60 which is still more than the previous 30
    
    Improvements that could still be implemented:
     -Checking the availability of Special:Export before trying to download the list of titles and images wasting resources
    GERZAC1002 committed Apr 11, 2022
    Configuration menu
    Copy the full SHA
    120f54d View commit details
    Browse the repository at this point in the history
  3. Adjusted dumpgenerator.py to allow '--apiquery' to go along with

    '--images' and '--xmlrevisions' too, accidentally disabled that in
    previous commit
    GERZAC1002 committed Apr 11, 2022
    Configuration menu
    Copy the full SHA
    3b02235 View commit details
    Browse the repository at this point in the history

Commits on May 2, 2022

  1. Configuration menu
    Copy the full SHA
    c3a1c26 View commit details
    Browse the repository at this point in the history