I have a spider that crawls for contact details from given url(s).
Works fine, but some of the data its collecting comes from css rules on the pages, for example some <svg></svg> attributes may appear as valid numbers. Or some image mappings in <scripts></script> like 404_static_desk_1920-w375@1x.jpg may appear as valid email addresses.
How can I make scrapy ignore certain tags and totally ignore html attributes?
If you're using a CSS selector you can add :not(svg):not(script) at the end of your selector.
For example if you want to select all element except svg and script: *:not(svg):not(script)
If you edit your question and add an example of how you extract the data I could help you further.
How to make Python Scrapy skip css rules and html attributes