15
16
17
18
19
20
21
22
23
24
25
26
27
28
29 | try:
from pyquery import PyQuery as pq
# pq.each_pq = lambda self,func: self.each( lambda i,html: func( pq(html, parser="html") ) )
except Exception, e:
# disable use
pq = None
config.conf.pyquery = False
# error hint
print("LXML is missing\n", e) |
|
| 15
16
17
18
19
20
21
22
23
24
25
26
27
28
29 | try:
from pyquery import PyQuery as pq
# pq.each_pq = lambda self,func: self.each( lambda i,html: func( pq(html, parser="html") ) )
except Exception as e:
# disable use
pq = None
config.conf.pyquery = False
# error hint
print("LXML is missing\n", e) |