Thread:Project:Support desk/Automated PDF export of certain categories/pages (pdfbook/wget/curl/?)

Hi all,

We run MW 1.22 with Pdfbook & LDAP authentication and everything runs great. Lately something came up where we want to export/save a PDF file of a certain category daily or weekly or whatever. I have tried many different combinations of wget & curl commands through Googling with no luck so far. I am pretty sure it comes down to having to log in and cookies (although some of the scripts I have tried did successfully save cookies to a file, whether through Special:UserLogin or MW's API). Many of these scripts/commands have looked correct, but never any success - always just 0 byte files or ~10k byte files that are just the wiki's heading/main menu code as HTML. Has anyone successfully done something like this or have any other ideas?

TL;DR: Basically we want to hit something like this: http://hostname/wiki/index.php?title=Category:People&action=pdfbook automatically through a script and save the PDF file generated elsewhere. The problem seems to be with authentication to MW.

On a side note, has anyone successfully excluded certain pages from needing authentication when it is otherwise required site-wide?

THANKS!