Skip to content

Commit 7937cad

Browse files
committed
🐛 Minor patch to fix custom site support in 1.9
1 parent 67c13a5 commit 7937cad

File tree

7 files changed

+18
-9
lines changed

7 files changed

+18
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ This is a script I made a while back to check the availability of OG words as ha
2525
- Kik
2626

2727
### Comptability
28-
Version `1.9` is incompatible with custom site URLs. Use `1.8` for this feature.
28+
Version `1.9.0` is incompatible with custom site URLs. Please revert back to `1.8` via the Release tab on GitHub or upgrade to 1.9.1 which patched the bug.
2929

3030
Version `1.4-1.9+` is only compatible with Python 3+
3131

config.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424
; If your target site is not listed, put "1" for CUSTOM (without the quotes).
2525
siteNum = 5
2626
; Fill in the option below with the profile URL of the service you want to check available names for.
27-
; Use %%word%% or %%name%% as the placeholder for the username to check.
27+
; Use _word_ or _name_ the placeholder for the username to check.
2828
; customSite is only for sites not specifically listed in the chart above, but please be aware
2929
; that not every site will work this way. If there is a service you would like to see support for, please
30-
; don't hesistate to let Croc know.
30+
; don't hesistate to let Croc#1111 know on Discord.
3131
; DO NOT PUT QUOTATION MARKS AROUND URL!
32-
customSite = http://example.com/%%word%%
32+
customSite = https://example.com/_word_
3333

3434
[lists]
3535
; Be sure to include the file extension if it has one

lib/ConfigHelper.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import re
44

55
# Regex Patterns
6-
PLACEHOLDER = r"%%(name|word)%%"
6+
PLACEHOLDER = r"_(word|name)_"
77
URLPATT = r"(^https?:\/\/[-.a-zA-Z0-9]+)"
88
DOMAIN = r"(?:https:\/\/)?(?:\w+\.)?(\w+)\.\w+\/?"
99

@@ -13,12 +13,12 @@
1313
class ConfigHelper:
1414

1515
def getSite(self):
16-
return config.getint('site', 'siteNum', fallback=5,)
16+
return config.getint('site', 'siteNum', fallback=5)
1717

1818

1919
def getCustomUrl(self):
2020
url = config.get('site', 'customSite')
21-
if re.match(PLACEHOLDER, url):
21+
if re.search(PLACEHOLDER, url):
2222
return url
2323

2424

lib/ProxyHelper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def checkJob(self, proxy):
2727
}
2828
try:
2929
r = self.session.get('https://google.com', timeout=4, proxies=proxyDict)
30-
if r.status_code is 200:
30+
if r.status_code == 200:
3131
self.good.append(proxy)
3232
with self.print_lock:
3333
print("%s is working..." % proxy)

lib/get.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ def requestJob(item):
2727
with print_lock:
2828
print("["+threading.current_thread().name+"] "+word+" is UNAVAILABLE on pastebin because it has illegal length.")
2929
else:
30-
3130
link = replace(word)
3231
s = requests.Session()
3332
if ch.enableProxy():

lib/replace.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import re
2+
import sys
23
from lib.ConfigHelper import ConfigHelper, PLACEHOLDER
34

45
ch = ConfigHelper()

test.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import requests
2+
3+
possibleCharacters = []
4+
possibleCharacters[:0] = 'abcdefghijklmnopqrstuvwxyz0123456789'
5+
print(possibleCharacters)
6+
finalString = ""
7+
8+
for character in possibleCharacters:
9+
finalString =

0 commit comments

Comments
 (0)