This commit is contained in:
@@ -3,17 +3,28 @@
|
||||
from core.scrapertools import *
|
||||
|
||||
|
||||
def decode(text):
|
||||
def decode(text, alt = False):
|
||||
text = re.sub(r"\s+|/\*.*?\*/", "", text)
|
||||
data = text.split("+(゚Д゚)[゚o゚]")[1]
|
||||
chars = data.split("+(゚Д゚)[゚ε゚]+")[1:]
|
||||
if alt:
|
||||
data = text.split("+(゚Ɇ゚)[゚o゚]")[1]
|
||||
chars = data.split("+(゚Ɇ゚)[゚ε゚]+")[1:]
|
||||
char1 = "ღ"
|
||||
char2 = "(゚Ɇ゚)[゚Θ゚]"
|
||||
else:
|
||||
data = text.split("+(゚Д゚)[゚o゚]")[1]
|
||||
chars = data.split("+(゚Д゚)[゚ε゚]+")[1:]
|
||||
char1 = "c"
|
||||
char2 = "(゚Д゚)['0']"
|
||||
|
||||
#data = text.split("+(゚Д゚)[゚o゚]")[1]
|
||||
#chars = data.split("+(゚Д゚)[゚ε゚]+")[1:]
|
||||
|
||||
txt = ""
|
||||
for char in chars:
|
||||
char = char \
|
||||
.replace("(o゚ー゚o)", "u") \
|
||||
.replace("c", "0") \
|
||||
.replace("(゚Д゚)['0']", "c") \
|
||||
.replace(char1, "0") \
|
||||
.replace(char2, "c") \
|
||||
.replace("゚Θ゚", "1") \
|
||||
.replace("!+[]", "1") \
|
||||
.replace("-~", "1+") \
|
||||
|
||||
Reference in New Issue
Block a user