SEESenv/web/html/backup/paragraphlist.py
author amit@thunder
Tue, 02 Mar 2010 17:07:14 +0530
changeset 41 e54725be4df6
parent 2 52d12eb31c30
permissions -rwxr-xr-x
Changed paths dependent on repo location to be taken from the script also changed how the soup is printed
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