User:Dsprc/CIA

201
97 pages of difficult to read PDF scans --- 00[01-97].pdf --- The documents span the 000X to 00XX space (where X indicates a random number); can plug in a random number and get a doc.

First Document: 0001.pdf is first document of set.
 * http://www.foia.cia.gov/sites/default/files/document_conversions/1705143/DTPILLAR%20%20%20VOL.%201_0001.pdf

* http://www.foia.cia.gov/sites/default/files/document_conversions/1705143/DTPILLAR%20%20%20VOL.%201_0009.pdf * http://www.foia.cia.gov/sites/default/files/document_conversions/1705143/DTPILLAR%20%20%20VOL.%201_0010.pdf * http://www.foia.cia.gov/sites/default/files/document_conversions/1705143/DTPILLAR%20%20%20VOL.%201_0011.pdf * http://www.foia.cia.gov/sites/default/files/document_conversions/1705143/DTPILLAR%20%20%20VOL.%201_0031.pdf * http://www.foia.cia.gov/sites/default/files/document_conversions/1705143/DTPILLAR%20%20%20VOL.%201_0036.pdf * http://www.foia.cia.gov/sites/default/files/document_conversions/1705143/DTPILLAR%20%20%20VOL.%201_0072.pdf * http://www.foia.cia.gov/sites/default/files/document_conversions/1705143/DTPILLAR%20%20%20VOL.%201_0084.pdf * http://www.foia.cia.gov/sites/default/files/document_conversions/1705143/DTPILLAR%20%20%20VOL.%201_0085.pdf
 * random docs in between to illustrate numbering:
 * end random docs

Last Document: This is the last document located in the above set using the 00[0X-XX].pdf numbering scheme (0098 and 0099 or 0100 do not exist):
 * http://www.foia.cia.gov/sites/default/files/document_conversions/1705143/DTPILLAR%20%20%20VOL.%201_0097.pdf

Bulk download
To download all files from set, one can easily do so with this BASH oneliner that utilizes 'for loops' and 'brace expansion' facilities of the shell (and GNU wget!):

$ for X in {0001..0097}; do wget -c "http://www.foia.cia.gov/sites/default/files/document_conversions/1705143/DTPILLAR%20%20%20VOL.%201_$X.pdf"; done

Which pulls all docs in range specified within curly brackets (brace expansion); files will be named like this: "DTPILLAR VOL. 1_0001.pdf" (except with 3 spaces after "DTPILLAR" instead of 1 as displayed by wikimarkup). Annoying spaces in filenames can lazily be handled with utilities such as detox:

$ detox * (that simple)

Which converts into "DTPILLAR_VOL._1_0001.pdf"

Or can include more complex regular expressions in oneliner if one desires.

202
Possible same

This set of documents was also discovered to have a similar numbering scheme so possi-likely is same exact 00[01-XX].pdf as previous:


 * http://www.foia.cia.gov/sites/default/files/document_conversions/1705143/DTPILLAR%20%20%20VOL.%202_0048.pdf

0xDEADBEEF
Random documents with Radio Free Asia mentioned but lacking any discernible numbering pattern or scheme:


 * http://www.foia.cia.gov/sites/default/files/document_conversions/5829/CIA-RDP80R01731R001600070028-2.pdf
 * http://www.foia.cia.gov/sites/default/files/document_conversions/5829/CIA-RDP80B01676R001100080017-6.pdf
 * http://www.foia.cia.gov/sites/default/files/document_conversions/89801/DOC_0000476939.pdf