Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random download block in the terminal #32

Open
boipussy opened this issue Mar 24, 2023 · 4 comments
Open

Random download block in the terminal #32

boipussy opened this issue Mar 24, 2023 · 4 comments
Labels
question Further information is requested

Comments

@boipussy
Copy link

Hi,

I'm just wondering why after playing around with this for a bit, why did this script randomly start to download something? I saw it displayed in the Terminal and I unfortunately didn't copy it or screenshot it but it was like "████████████ 100% " randomly in the console.

I've used it for 2 days now and it didn't do this until last night.

Could you explain what that would be or does this bot update automatically?

@PanagiotisIatrou
Copy link
Owner

Hello @boipussy. Yes this is normal behaviour. It probably happened when you pressed the "Open browser" button.
This happens because the program tries to check if there is a new version of chromedriver and in your case it found one so it started downloading it.
This can be seen on the file src/gui.py inside the on_open_browser_button_listener() function in the line self.chrome = webdriver.Chrome(service=Service(ChromeDriverManager().install()), options=options)

@PanagiotisIatrou PanagiotisIatrou added the question Further information is requested label Mar 24, 2023
@boipussy
Copy link
Author

boipussy commented Mar 29, 2023

Hi @PanagiotisIatrou

Sorry for the late reply, yeah I actually looked into it with a friend and realized it used a webdriver_manager which later goes through driver_cache and the self.valid_range is defaulted to 1 (day).

I managed to replicate this and have my terminal constantly download this by running Ccleaner to delete the cache, so yeah kinda confirmed it being the Selenium package but thank you so much for the detailed reply as well <3

I do have one more question in regards to 'downloads' though, and thought I'd ask here instead of creating another thread. Sometimes when I am playing around with the bot, it randomly will want to download something from the Chrome Window and download a file into my downloads directory simply named 'sync'

Haven't really looked into this but I can't figure out what it would be from the top of my head. Could you explain that also, thanks :)

@PanagiotisIatrou
Copy link
Owner

Well, that is weird and I have no idea what could be causing this as there is nothing else in the codebase that tries to download something. Are you sure this is not caused by something else? Also, does this file stay when you close the bot, and if so could you check its content?

@boipussy
Copy link
Author

boipussy commented Mar 31, 2023

I can see it in the Chrome window itself, at the bottom of the window sometimes it will say 'syncing' and then in my downloads an empty file named 'sync' with 0 size appears in my download folder. Honestly not sure what it could be then. Perhaps its something to do with all the ads on Chess.com? But even then, that would be the first time I've ever experienced website ads downloading a file with nothing in it on my PC.

Yes, the file does stay actually when I close the bot. I recently reinstalled Windows, but next time I use the bot I'll see if it appears again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants