Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FILE = 'result.txt'
- with open(FILE, 'r') as fh:
- num_list = [line for line in fh]
- path = num_list[3].split(':')[0]
- pages = {}
- for i,j in enumerate(num_list[4:]):
- list = num_list[i+4].split(':')
- pages[list[0]] = [list[i].split(' ')[2].split(')')[0] for i in range(2,6)]
- print(path)
- print(pages)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement