Hi there,
welcome to the scapy community!
The online documentation has lots of code snippets with valid import statements.
which shows these imports:
I was about to take LinkExtractor as an example, but in fact it's an alias for
scrapy.linkextractors.lxmlhtml.LxmlLinkExtractor
Let's take Rule as example.
and you can see
classscrapy.spiders.
Rule
(link_extractor, callback=None, cb_kwargs=None, follow=None, process_links=None, process_request=None)
So to use the Rule class and instances in your code, you'll have to import something like this:
from scrapy.spiders import Rule
Hope this helps.
/Paul.