Skip to content

Commit

Permalink
feat : crawling - export json
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaymyong66 committed Nov 10, 2023
1 parent c7273e4 commit 6d86dbf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions crawling/inflearn/keyword-search.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,13 @@ def keyword_search(keywords):
print(result)


if not os.path.exists(folder_path):
os.makedirs(folder_path)

json_file_path = os.path.join("./", "inflearn_data12.json")

with open(json_file_path, 'w', encoding='utf-8') as json_file:
json.dump(result, json_file)

print("함수 결과를 파일로 저장했습니다.")

0 comments on commit 6d86dbf

Please sign in to comment.