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

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -