thebrumby / HotWalletClaimer

Looking to optimize HOT earnings on Near Protocol, Wave on SUI, Vertus on TON, or 19 other supported Telegram mini-apps? This Python script monitors and claims rewards for your favorite Telegram crypto-based games. By simulating mouse movements and keystrokes in a real browser session, it avoids the need for direct API injection or token scraping.
MIT License
202 stars 48 forks source link

delete selenium folder content #264

Closed Jelingam closed 1 month ago

Jelingam commented 1 month ago

hey phil What happens if I delete this folder?

this is just cache ?

image

Jelingam commented 1 month ago

my selenium folder is taking up 22 GB of space.

Jelingam commented 1 month ago
import os

base_folder = "./selenium/"
all_folder = os.listdir(base_folder)

size = 0.0
for folder in all_folder:
    js_folder = f"selenium/{folder}/Default/Code Cache/js/"
    if os.path.isdir(js_folder):
        js_content = os.listdir(js_folder)
        for content in js_content:
            c = js_folder + content
            size += os.path.getsize(c)

gb = size / 1024 / 1024 / 1024
print(f"folder size = {gb:.1f} GB")

this js folder taking up about 5.6 GB of space

thebrumby commented 1 month ago

Hi,

The selenium folder contains the browser sessions of all games, if you were to delete all sub-folders within this folder, you would be essentially deleting the current version of all games. On the next run of the script, the it would attempt to restore the session from the backups folder, which would probably contain less cached content then the session in the selenium folder - that said, if the script was unable to restore from the backup, you'd then need to start again with that session.

Jelingam commented 1 month ago

how about deleting unnecessary cache ?

as you see in js folder.

thebrumby commented 1 month ago

Hi @Jelingam,

I've never tried it. You could take a copy of the folder and see what happens after deleting it.