python - Clear cookies on scrapy completely instead of changing them -


i noticed blocked while scraping because of session cookie being used on many pages. there way clear cookies during crawling initial state of crawler?

facing similar situation myself. can away here, 1 idea have subclass cookiemiddleware , write method tweak jar variable directly. it's dirty, maybe worth consideration.

another option write feature request @ least have function clear cookies. can take year implement, if deemed needed @ all, don't particularly trust scrapy devs here.

just occured me, can use own cookiejar meta, , if want return clean state, use different value (something incrementing integer do).


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -