Skip to content

Instantly share code, notes, and snippets.

Created Jun 22, 2012
What would you like to do?
Restoring Firefox session tabs from sessionstore.bak
import json,codecs
session_text = "sessionstore.bak", "r", "utf-8" ).read()
json = json.loads(session_text)
for i in range(len(json['_closedWindows'][0]['tabs'])):
print json['_closedWindows'][0]['tabs'][i]['entries'][-1]['url']
print 'done'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment