Issue
types of tags a:
<a rel="sponsored" href="https://cheese.example.com/Appenzeller_cheese">Appenzeller</a>
or
<a rel="ugc" href="https://cheese.example.com/Appenzeller_cheese">Appenzeller</a>
and one or more of the following values:
rel="sponsored"
or
rel="ugc"
or
rel="ugc nofollow noreferrer"
Apparently, Scrapy only supports the following value (Just "nofollow"):
<a rel="nofollow" href="https://cheese.example.com/Appenzeller_cheese">Appenzeller</a>
How can I get other values (like: ugc, noreferrer and ... ) with the help of Link Extractors?
Solution
You must use the from lxml import etree
library.
You can't do this with Link Extractors.
Like: etree.fromstring(tag)
Answered By - user19775963
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.