How spiders work within a project
masterA project contains one or more web crawlers called "spiders". Spiders are accessible via the .spiders attribute of a Project instance.
- Use
project.spiders.list()to get a list of dictionaries containing spider metadata (likeid,type, andversion). Note that theidin the dictionary corresponds to the spider's name. - Use
project.spiders.get(spider_name)to retrieve a specificSpiderinstance.
# List spiders in a project
spiders_list = project.spiders.list()
# Get a specific spider instance
sprider = project.spiders.get('spider2')