mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-26 14:10:20 +00:00
fix parsers
This commit is contained in:
parent
6a46e54282
commit
b53251fe45
1 changed files with 9 additions and 9 deletions
|
@ -38,15 +38,15 @@ from util import (
|
||||||
def get_parsers(file):
|
def get_parsers(file):
|
||||||
"""return all parsers that work on a given file, defaults to all of them"""
|
"""return all parsers that work on a given file, defaults to all of them"""
|
||||||
|
|
||||||
return OrderedDict((
|
return OrderedDict([
|
||||||
('pocket', parse_pocket_export)
|
('pocket', parse_pocket_export),
|
||||||
('pinboard', parse_json_export)
|
('pinboard', parse_json_export),
|
||||||
('bookmarks', parse_bookmarks_export)
|
('bookmarks', parse_bookmarks_export),
|
||||||
('rss', parse_rss_export)
|
('rss', parse_rss_export),
|
||||||
('pinboard_rss', parse_pinboard_rss_feed)
|
('pinboard_rss', parse_pinboard_rss_feed),
|
||||||
('medium_rss', parse_medium_rss_feed)
|
('medium_rss', parse_medium_rss_feed),
|
||||||
('plain_text', parse_plain_text)
|
('plain_text', parse_plain_text),
|
||||||
))
|
])
|
||||||
|
|
||||||
def parse_links(path):
|
def parse_links(path):
|
||||||
"""parse a list of links dictionaries from a bookmark export file"""
|
"""parse a list of links dictionaries from a bookmark export file"""
|
||||||
|
|
Loading…
Reference in a new issue