fix: Convert chinese text into readable text instead of ascii
This commit is contained in:
parent
3601cd8d5a
commit
5439f40473
@ -87,9 +87,9 @@ def extractGeneralCourse():
|
||||
courseObjList[number+classNum]['department'] = major
|
||||
progress.update(1)
|
||||
|
||||
# curlAllCoursePage()
|
||||
curlAllCoursePage()
|
||||
extractAllCourse()
|
||||
# curlGeneralCoursePage()
|
||||
curlGeneralCoursePage()
|
||||
extractGeneralCourse()
|
||||
|
||||
out = []
|
||||
@ -99,5 +99,5 @@ for item in courseObjList:
|
||||
out.append(courseObjList[item])
|
||||
|
||||
with open('output.json', 'w') as fp:
|
||||
fp.write(json.dumps(out))
|
||||
fp.write(json.dumps(out, ensure_ascii=False))
|
||||
print(count)
|
||||
|
||||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user