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
|
courseObjList[number+classNum]['department'] = major
|
||||||
progress.update(1)
|
progress.update(1)
|
||||||
|
|
||||||
# curlAllCoursePage()
|
curlAllCoursePage()
|
||||||
extractAllCourse()
|
extractAllCourse()
|
||||||
# curlGeneralCoursePage()
|
curlGeneralCoursePage()
|
||||||
extractGeneralCourse()
|
extractGeneralCourse()
|
||||||
|
|
||||||
out = []
|
out = []
|
||||||
@ -99,5 +99,5 @@ for item in courseObjList:
|
|||||||
out.append(courseObjList[item])
|
out.append(courseObjList[item])
|
||||||
|
|
||||||
with open('output.json', 'w') as fp:
|
with open('output.json', 'w') as fp:
|
||||||
fp.write(json.dumps(out))
|
fp.write(json.dumps(out, ensure_ascii=False))
|
||||||
print(count)
|
print(count)
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user