extract-posts.html
001| '''\
001| Extract Post.
001|
001| Invoke the BAT file to extract post(s).
001|
001| '''
002| from sys import stdin, stdout, stderr, argv
003| from os import path, system
004| from datetime import datetime
005|
006| postIds = [
007| 1, 14, 17, 29, 33, 40, 53, 61, 85, 108, 127, 137, 153, 157, 196,
008| 209, 217, 231, 255, 268, 276, 284, 303, 332, 368, 374, 378, 382, 387, 416,
009| 425, 434, 445, 449, 453
010| ]
011|
012| batName = r'wp-extract-post.bat'
013| xmlName = r'newtothegame.wordpress.2014-04-14.xml'
014|
015| basePath = r'C:\CJS\pen\NewToTheGame\bu'
016|
017| batFile = path.join(basePath, batName)
018| xmlFile = path.join(basePath, xmlName)
019|
020| for pid in postIds:
021| command = '%s %s %d' % (batFile, xmlFile, pid)
022| print command
023| system(command)
024|
025|
026|
027| '''eof'''
028|