This module contains number of functions, which are used at multiple places in autoparser.
Look for encoding in given html. Try to convert html to utf-8.
Parameters: | html (str) – HTML code as string. |
---|---|
Returns: | str – HTML code encoded in UTF. |
Generate function, which checks whether the content of the tag matchs tag_content.
Parameters: |
|
---|---|
Returns: | bool – True for every matching tag. |
Note
This function can be used as parameter for .find() method in HTMLElement.
Check is element object match rest of the parameters.
All checks are performed only if proper attribute is set in the HTMLElement.
Parameters: |
|
---|---|
Returns: | bool – True if everyhing matchs, False otherwise. |
This function generates functions, which matches all tags with neighbours defined by parameters.
Parameters: |
|
---|---|
Returns: | bool – True for every matching tag. |
Note
This function can be used as parameter for .find() method in HTMLElement.