1

I'd like to get the content of a wiki page from my trac (1.0.9) using a script. My Trac is served through apache httpd and adopts a Basic AuthType.

So I tried to use wget as follows

wget http://my/trac/wiki/MyWikiPage?format=txt --user=<THISISME> --ask-password --auth-no-challenge -q -O -

but I get a 403 error.

HTTP request sent, awaiting response... 403 Forbidden

Is there something wrong? Or in other words, is thre a way to simply fetch remotely a wiki page from Trac (taking authentication into account)? Thx

Federico Destefanis
  • 968
  • 1
  • 16
  • 27

1 Answers1

1

You could install XmlRpcPlugin and use one of the supported libraries, such as xmlrpclib in Python, to fetch the page.

RjOllos
  • 2,900
  • 1
  • 19
  • 29
  • wonderful! By the way I was also looking for a java implementation, and I see It's also there https://trac-hacks.org/raw-attachment/wiki/XmlRpcPlugin/trac_xml_rpc_example_java.zip – Federico Destefanis Dec 05 '17 at 15:51