content_parser¶
-
class
content_parser.rule.Rule(path)¶ Class that helps extract data from html, using rule description language Parslepy
-
path¶ a string path to rule file
-
-
Rule.get()¶ gets rule (caching the result)
- Returns
dictionary with rules how to extract data
-
Rule.parse(html)¶ Extracts data from html using extraction rule
- Parameters
html – a string with html
- Returns
dictionary with extracted data from html