Thread:Project:Support desk/How to download all pages in a category into a text file and re-upload them?

Hoi, I was taking a look to Manual:Pywikipediabot, but I didn't find any specific script to download all pages in a category into a text file (so I can do batch modifications in them), and re-upload them. The nearest thing I found is pagefromfile.py with parameter -force. But how can I create a valid text file from a category on the first place?