Example #1
0
	def _get_ffx2_items(self, fpath):
		"""Parse Firefox' bookmarks.html"""
		from firefox_support import get_bookmarks
		self.output_debug("Parsing", fpath)
		bookmarks = get_bookmarks(fpath)
		for book in bookmarks:
			yield UrlLeaf(book["href"], book["title"])
Example #2
0
	def _get_ffx3_items(self, fpath):
		"""Parse Firefox' .json bookmarks backups"""
		from firefox3_support import get_bookmarks
		self.output_debug("Parsing", fpath)
		bookmarks = get_bookmarks(fpath)
		for book in bookmarks:
			yield UrlLeaf(book["uri"], book["title"])