wkeeling / selenium-wire

Extends Selenium's Python bindings to give you the ability to inspect requests made by the browser.
MIT License
1.9k stars 254 forks source link

prevent huge data in TEMP from seleniumwire #408

Closed skndrvoip closed 3 years ago

skndrvoip commented 3 years ago

i have a huge data saved in TEMP folder .selenium-wire

thanks

wkeeling commented 3 years ago

Selenium Wire saves captured requests in temp. It will periodically clear them out itself or you can do it manually in your code with del requests. To restrict what gets stored see "Limiting Request Capture" in the README. You can also switch to memory only storage if using the disk is a problem - see "In-Memory storage" in the README.

vrnvorona commented 2 years ago

It stores too much for periodic clearings. After two weeks of webscraping I have 5.6 GBs with 406k files. That wouldn't be much problem is for some reason it wasn't lying in AppData and slowing boot times of Windows machines by a lot.