fix: Convert chinese text into readable text instead of ascii

This commit is contained in:
snsd0805 2020-09-15 16:01:19 +08:00
parent 3601cd8d5a
commit 5439f40473
2 changed files with 4 additions and 4 deletions

View File

@ -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