python - Integrating Selenium with Scrapy -


is there way integrate selenium scrapy it's page rendering capabilities (in order generate screenshots)?

a lot of solutions i've seen throw scrapy request/response url @ webdriver after scrapy's processed request, , works off that. creates twice many requests, fails in many ways (sites requiring logins, sites dynamic or pseudo-random content, etc.), , invalidates many extensions/middleware.

is there "good" way of getting 2 work together? there better way generating screenshots of content i'm scraping?

use scrapy's downloader middleware. see answer on question simple example: https://stackoverflow.com/a/31186730/639806


Comments

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -