We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent feb4a4b commit f2213c5Copy full SHA for f2213c5
LeetCode_AC_Code_Crawler.py
@@ -77,7 +77,7 @@ def save_ac_code(ac_list, premium):
77
78
# Get ac code
79
script = soup.find("script", text = re.compile("submissionCode:"))
80
- code = re.findall("submissionCode:\s*'(.+)'", script.string)[0]
+ code = re.findall("submissionCode:\s*'(.+)'", script.string)[0].decode("unicode-escape")
81
suff = suffix_conversion(re.findall("getLangDisplay:\s*'(.+)'", script.string)[0])
82
83
folderName = str(ac["id"]).zfill(4) + ". " + ac["title"].strip()
0 commit comments