Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
3
'Y' @ sT d Z dddgZddlZddlmZmZ y0ddlmZmZm Z m
Z
mZmZm
Z
ee
fZW n8 ek
r ddlmZmZm Z m
Z
mZmZ eZY nX dd dZdd
dZdddZdd
ZejdejjZG dd dZdd Zdd ZyddlmZ W n" ek
r ddlmZ Y nX ejdjZye W n e!k
rF e"Z Y nX dd Z#dS )z5External interface to the BeautifulSoup HTML parser.
fromstringparseconvert_tree N)etreehtml)
BeautifulSoupTagCommentProcessingInstructionNavigableStringDeclarationDoctype)r r r r
r r c K s t | ||f|S )a Parse a string of HTML data into an Element tree using the
BeautifulSoup parser.
Returns the root ```` Element of the tree.
You can pass a different BeautifulSoup parser through the
`beautifulsoup` keyword, and a diffent Element factory function
through the `makeelement` keyword. By default, the standard
``BeautifulSoup`` class and the default factory of `lxml.html` are
used.
)_parse)data
beautifulsoupmakeelementbsargs r "/usr/lib64/python3.6/soupparser.pyr s c K s, t | dst| } t| ||f|}tj|S )aY Parse a file into an ElemenTree using the BeautifulSoup parser.
You can pass a different BeautifulSoup parser through the
`beautifulsoup` keyword, and a diffent Element factory function
through the `makeelement` keyword. By default, the standard
``BeautifulSoup`` class and the default factory of `lxml.html` are
used.
read)hasattropenr r ZElementTree)filer r r rootr r r r $ s
c C s. t | |}|j }x|D ]}|j| qW |S )a Convert a BeautifulSoup tree to a list of Element trees.
Returns a list instead of a single root Element to support
HTML-like soup with more than one root element.
You can pass a different Element factory through the `makeelement`
keyword.
)
_convert_treeZgetchildrenremove)beautiful_soup_treer r Zchildrenchildr r r r 3 s
c K s |d krt }t|dr&d|kr&d|d<