Changeset 1191 for trunk/UTIL
- Timestamp:
- Feb 27, 2014, 4:56:48 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTIL/PYTHON/bibweb/ads.py
r1179 r1191 27 27 printnum = False, 28 28 verbose = True, 29 includemonth = False, 29 30 target = None): 30 31 … … 66 67 print >> bibfile,html 67 68 bibfile.close() 69 ## includemonth or not 70 if not includemonth: 71 existing = open(linkads+'.bib','r').readlines() 72 new = open(linkads+'.bib','w') 73 for lines in existing: 74 if "month" not in lines: 75 new.write(lines) 76 new.close() 68 77 69 78 ### if only one year and no customcond, make it useful. ask for years >= this value … … 169 178 htmlcontent = find.sub('Journal website',htmlcontent) 170 179 180 ## fix problem with accents 181 find = re.compile(r'é') 182 htmlcontent = find.sub('é',htmlcontent) 183 find = re.compile(r'è') 184 htmlcontent = find.sub('è',htmlcontent) 185 171 186 #find = re.compile(r'.pdf') 172 187 #htmlcontent = find.sub('PDF version',htmlcontent)
Note: See TracChangeset
for help on using the changeset viewer.