Skip to content

Commit

Permalink
feat : crawling - keyword-search - more
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaymyong66 committed Nov 10, 2023
1 parent 2cfd1f2 commit c7273e4
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion crawling/inflearn/keyword-search.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,18 @@ def keyword_search(keywords):
course_info_list.append(course_info)



# 강의 디테일 페이지에서 데이터 가져와서 course_info에 추가
# 총 강의 시간
for course_info in course_info_list:
target_url = course_info['link']

course_detail_data = course_detail_search(target_url)
if course_info['link'] == target_url:
course_info['course_hours'] = course_detail_data[0]
course_info['introduction'] = course_detail_data[2]
course_info['discount_price'] = course_detail_data[3]
course_info['stacks'] = course_detail_data[4]
course_info['thumnail'] = course_detail_data[5]

return course_info_list

Expand All @@ -63,3 +74,4 @@ def keyword_search(keywords):




0 comments on commit c7273e4

Please sign in to comment.