web/html/backup/paragraphlist.py
author amit@thunder
Mon, 25 Jan 2010 18:56:45 +0530
changeset 0 8083d21c0020
permissions -rwxr-xr-x
The first commit of all the required files for the review app
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
8083d21c0020 The first commit of all the required files for the review app
amit@thunder
parents:
diff changeset
     1
import sys
8083d21c0020 The first commit of all the required files for the review app
amit@thunder
parents:
diff changeset
     2
f=open(sys.argv[1],'r')
8083d21c0020 The first commit of all the required files for the review app
amit@thunder
parents:
diff changeset
     3
pid_list=[]
8083d21c0020 The first commit of all the required files for the review app
amit@thunder
parents:
diff changeset
     4
for i in f.readlines():
8083d21c0020 The first commit of all the required files for the review app
amit@thunder
parents:
diff changeset
     5
    if i.startswith('<p id=') : 
8083d21c0020 The first commit of all the required files for the review app
amit@thunder
parents:
diff changeset
     6
        list_tmp=i.split('"')[1]
8083d21c0020 The first commit of all the required files for the review app
amit@thunder
parents:
diff changeset
     7
        pid_list.append(list_tmp)
8083d21c0020 The first commit of all the required files for the review app
amit@thunder
parents:
diff changeset
     8
print pid_list