add a 'raw' parser
This commit is contained in:
parent
47f159a3a4
commit
218159992e
2 changed files with 14 additions and 1 deletions
|
|
@ -59,6 +59,12 @@ def load_json():
|
|||
from .jsonparser import JsonParser
|
||||
return JsonParser
|
||||
|
||||
def load_raw():
|
||||
# This parser doesn't read HTML, don't include it in the
|
||||
# preference_order default value below.
|
||||
from .iparser import RawParser
|
||||
return RawParser
|
||||
|
||||
|
||||
def get_parser(preference_order=('lxml', 'lxmlsoup')):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue