ispras / scrapy-puppeteer

Library that helps use puppeteer in scrapy.
BSD 3-Clause "New" or "Revised" License
49 stars 4 forks source link

Context restoring #27

Open MatthewZMSU opened 1 month ago

MatthewZMSU commented 1 month ago

Description

Implemented new downloader middleware for restoring contexts when they are destroyed. Added example spider. Added info about the middleware to README.

Restructured the project to have more than 1 middleware. Changed init.py in the corresponding way to provide backward compatibility.

Type of change

How Has This Been Tested?

I tested the middleware with several spuder on my PC.

Checklist:

MatthewZMSU commented 1 month ago

Service and Recaptcha middlewares were mostly copied from previous middleware.py file. I only fixed typo and added proper logging.