1
0
mirror of https://github.com/pirate/ArchiveBox.git synced 2025-08-30 01:30:15 +02:00

fix parsers

This commit is contained in:
Nick Sweeting
2019-01-26 15:09:53 -08:00
parent 6a46e54282
commit b53251fe45

View File

@@ -38,15 +38,15 @@ from util import (
def get_parsers(file):
"""return all parsers that work on a given file, defaults to all of them"""
return OrderedDict((
('pocket', parse_pocket_export)
('pinboard', parse_json_export)
('bookmarks', parse_bookmarks_export)
('rss', parse_rss_export)
('pinboard_rss', parse_pinboard_rss_feed)
('medium_rss', parse_medium_rss_feed)
('plain_text', parse_plain_text)
))
return OrderedDict([
('pocket', parse_pocket_export),
('pinboard', parse_json_export),
('bookmarks', parse_bookmarks_export),
('rss', parse_rss_export),
('pinboard_rss', parse_pinboard_rss_feed),
('medium_rss', parse_medium_rss_feed),
('plain_text', parse_plain_text),
])
def parse_links(path):
"""parse a list of links dictionaries from a bookmark export file"""