Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ya = ''' Metrika counter '''
- names = [name for name in os.listdir(os.getcwd()) if name[-3:] == "htm"]
- for curr_name in names:
- print curr_name
- data = []
- with open(curr_name) as f:
- data = f.readlines()
- for i in xrange(len( data)):
- data[i] = data[i].replace("</body>", ya + "</body>")
- with open(curr_name, "w") as f:
- f.writelines(data)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement