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
Post a Comment