Crawls Topcoder problems and compiles into a single PDF file for portability.
-
topcoderParse.pycrawls the topcoder archive and saves the htmls in the folderhtmls. -
topcoderGenPdf.pycleans the htmls and usespdfkitto generate pdfs for all the files into thePDFsfolder. -
filemerger.pymerges the pdfs into single files. This produces two filessrmmerged.pdfandothermerged.pdffor SRMs and non-SRMs respectively. -
createindex.pygenerates the LaTeX code for the final pdfs of the two files. This also includes a generated index for easy navigation. -
The command
pdflatex Topcoder<X>.texcompiles the LaTeX documents to the final PDFs.Xstands for SRMs and Others. The final PDFs are named asTopcoderSRMs.pdfandTopcoderOthers.pdf. -
To make this behind a proxy uncomment the proxy option in the following lines of the file
topcoderGenPdf.pyand set the proper proxy.options = { 'page-size': 'A5', 'margin-top': '0.30in', 'margin-right': '0.0in', 'margin-bottom': '0.30in', 'margin-left': '0.0in', 'cache-dir': 'html_cache', # 'proxy': '10.3.100.207:8080' }