File tree Expand file tree Collapse file tree 1 file changed +20
-10
lines changed
Expand file tree Collapse file tree 1 file changed +20
-10
lines changed Original file line number Diff line number Diff line change @@ -68,23 +68,33 @@ def extract(htmlstring,
6868 processors = []
6969 if 'microdata' in syntaxes :
7070 processors .append (
71- ('microdata' , MicrodataExtractor (
72- add_html_node = return_html_node ).extract_items , tree ))
71+ ('microdata' ,
72+ MicrodataExtractor (add_html_node = return_html_node ).extract_items ,
73+ tree
74+ ))
7375 if 'json-ld' in syntaxes :
74- processors .append (('json-ld' , JsonLdExtractor ().extract_items ,
75- tree ))
76+ processors .append (
77+ ('json-ld' ,
78+ JsonLdExtractor ().extract_items ,
79+ tree ,
80+ ))
7681 if 'opengraph' in syntaxes :
77- processors .append (('opengraph' , OpenGraphExtractor ().extract_items ,
78- tree ))
82+ processors .append (
83+ ('opengraph' ,
84+ OpenGraphExtractor ().extract_items ,
85+ tree
86+ ))
7987 if 'microformat' in syntaxes :
8088 processors .append (
81- ('microformat' , MicroformatExtractor ().extract_items ,
82- htmlstring ))
89+ ('microformat' ,
90+ MicroformatExtractor ().extract_items ,
91+ htmlstring
92+ ))
8393 if 'rdfa' in syntaxes :
8494 processors .append (
8595 ('rdfa' , RDFaExtractor ().extract_items ,
86- tree ,
87- ))
96+ tree ,
97+ ))
8898 output = {}
8999 for syntax , extract , document in processors :
90100 try :
You can’t perform that action at this time.
0 commit comments