Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 98341

Scrapy - Selenium TypeError: 'NoneType' object is not iterable

$
0
0

I get the following error:

start_requests = iter(self.spider.start_requests())
   TypeError: 'NoneType' object is not iterable

when I run:

class CramoSpider(Spider):
    name = 'cramo'
    allowed_domains = ['www.cramo.ee']

    def start_requests(self):
        self.driver = webdriver.Chrome('/Users/Laptop/chromedriver')
        self.driver.get('https://www.cramo.ee/et/rentimine/hinnakiri')

    def parse_book(self, response):
        pass

What am I doing wrong here?

Thank you


Viewing all articles
Browse latest Browse all 98341

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>