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

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -