mirror of
https://github.com/taroved/pol
synced 2025-05-29 12:30:09 -07:00
ns fix
This commit is contained in:
parent
c14df760b6
commit
1b172dc72a
@ -53,6 +53,8 @@ def getPageFactory(url, contextFactory=None, *args, **kwargs):
|
|||||||
|
|
||||||
|
|
||||||
def setBaseAndRemoveScriptsAndMore(response, url):
|
def setBaseAndRemoveScriptsAndMore(response, url):
|
||||||
|
response.selector.remove_namespaces()
|
||||||
|
|
||||||
tree = response.selector._root.getroottree()
|
tree = response.selector._root.getroottree()
|
||||||
|
|
||||||
# set base url to html document
|
# set base url to html document
|
||||||
|
2
feed.py
2
feed.py
@ -57,6 +57,8 @@ def _build_link(html, doc_url, url):
|
|||||||
return w3lib.url.urljoin_rfc(base_url, url)
|
return w3lib.url.urljoin_rfc(base_url, url)
|
||||||
|
|
||||||
def _buildFeed(response, feed_config):
|
def _buildFeed(response, feed_config):
|
||||||
|
response.selector.remove_namespaces()
|
||||||
|
|
||||||
tree = response.selector._root.getroottree()
|
tree = response.selector._root.getroottree()
|
||||||
|
|
||||||
# get data from html
|
# get data from html
|
||||||
|
Loading…
x
Reference in New Issue
Block a user