conf_reader¶
Functions which allows to read serialized informations for autoparser.
- harvester.autoparser.conf_reader.read_config(file_name)[source]¶
Read YAML file with configuration and pointers to example data.
Parameters: file_name (str) – Name of the file, where the configuration is stored. Returns: Parsed and processed data (see _process_config_item()). Return type: dict - Example YAML file::
html: simple_xml.xml first:
data: i wan’t this required: true notfoundmsg: Can’t find variable $name.- second:
- data: and this
— html: simple_xml2.xml first:
data: something wanted required: true notfoundmsg: Can’t find variable $name.- second:
- data: another wanted thing