User Tools

Site Tools


NDAC PDF scrape - use this to bulk download the PDFs

NDAC txt scrape - this will extract the text from the downloaded PDFs.

PDF to TXT - this is used by the previous program

the following script merged together the individual sections into the single-file chapters:


for i in `find ./[0-9]* -type d -name '*-*-*' -print` ; do
  echo $i
  CHAPTER=`echo ${i}|cut -d '/' -f 4`
  echo chapter = $CHAPTER
  cd $BASE/$i 
  echo "in directory:"
  echo "creating ${CHAPTER}.txt" 
  echo "====== Chapter ${CHAPTER} ======" > ${CHAPTER}.txt 
  cat ${CHAPTER}-*.txt >> ${CHAPTER}.txt;
code/start.txt · Last modified: 2022/03/04 10:31 by

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki