mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-22 20:23:12 +00:00
fix order of parsers not enforced on python 3.5
This commit is contained in:
parent
e60070dbb2
commit
ff125d990c
1 changed files with 10 additions and 9 deletions
|
@ -20,6 +20,7 @@ Parsed link schema: {
|
|||
import re
|
||||
import json
|
||||
import urllib
|
||||
from collections import OrderedDict
|
||||
import xml.etree.ElementTree as etree
|
||||
|
||||
from datetime import datetime
|
||||
|
@ -37,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 {
|
||||
'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"""
|
||||
|
|
Loading…
Reference in a new issue