1 f=open('abc.html','r')
2 pid_list=[]
3 for i in f.readlines():
4 if i.startswith('<p id=') :
5 list_tmp=i.split('"')[1]
6 pid_list.append(list_tmp)
7 print pid_list