Skip to content
This repository was archived by the owner on Jan 6, 2022. It is now read-only.

Commit 7e7b161

Browse files
author
ToasterUwU
committed
no geckodriver log, new goals in readme
1 parent 0999073 commit 7e7b161

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Everyone should be able to use it just fine.
5656
- Linux:
5757
- Instead of downloading the installer, you download the linux.zip file
5858
- Unpack the zip
59-
- Open a console in the folder of Anti-Scalp
59+
- Open a console in the new folder of Anti-Scalp
6060
- "sudo apt install firefox-geckodriver"
6161
- "sudo apt install python3-pip"
6262
- "sudo pip3 install -r requirements.txt"
@@ -82,7 +82,10 @@ If you need any help with using Anti-Scalp, join the [discord server](https://di
8282

8383
## What comes in the future
8484

85+
- [ ] Autoupdate selectors.json
86+
- [ ] Tutorial video for the ones that are not so good with tech
8587
- [ ] Easier way to add links then making a .txt file in a folder
88+
- [ ] Alternative ways of notification from sound and opening (For example: Discord Webhooks, SMS, Email)
8689
- [ ] Auto configuration for new shops
8790

8891

anti-scalp.pyw

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import time
1111
import webbrowser
1212
from difflib import SequenceMatcher
1313
from itertools import cycle
14-
from typing import Callable, Iterable, List
14+
from typing import Callable, Iterable
1515

1616
import playsound
1717
import requests
@@ -110,7 +110,7 @@ class Broswer():
110110
self.options.headless = headless
111111
if bin_path:
112112
self.options.binary_location = bin_path
113-
test_driver = webdriver.Firefox(options=self.options)
113+
test_driver = webdriver.Firefox(options=self.options, service_log_path=os.devnull)
114114
except:
115115
if not chrome_failed:
116116
self.browser = "chrome"
@@ -196,7 +196,7 @@ class Broswer():
196196
profile = webdriver.FirefoxProfile()
197197
profile.set_preference("permissions.default.image", 2)
198198

199-
self.driver = webdriver.Firefox(options=self.options, firefox_profile=profile)
199+
self.driver = webdriver.Firefox(options=self.options, firefox_profile=profile, service_log_path=os.devnull)
200200

201201
elif self.browser == "chrome":
202202
chrome_prefs = {}
@@ -699,8 +699,11 @@ class GUI():
699699
playsound.playsound("alert.wav", block=False)
700700

701701
def change_sound(self):
702-
filename = QFileDialog().getOpenFileName(filter="*.mp3 *.wav")[0]
703-
shutil.copy2(PATH+filename, PATH+"alert."+filename.rsplit(".", 1)[1])
702+
try:
703+
filename = QFileDialog().getOpenFileName(filter="*.mp3 *.wav")[0]
704+
shutil.copy2(PATH+filename, PATH+"alert."+filename.rsplit(".", 1)[1])
705+
except:
706+
pass
704707

705708
def reset_sound(self):
706709
if os.path.exists(PATH+"alert.mp3"):
@@ -732,6 +735,7 @@ class GUI():
732735
for name, p_box in self.product_check_boxes.items():
733736
if name not in ap:
734737
p_box.setDisabled(True)
738+
p_box.setChecked(False)
735739
else:
736740
p_box.setDisabled(False)
737741

@@ -781,7 +785,7 @@ class GUI():
781785
webbrowser.open("https://github.com/ToasterUwU/Anti-Scalp")
782786

783787
def open_links_folder(self):
784-
webbrowser.open(__file__.replace("\\", "/").rsplit("/", 1)[0]+"/links")
788+
webbrowser.open(PATH+"/links")
785789

786790
gui = GUI()
787791
gui.mainloop()

0 commit comments

Comments
 (0)