Skip to content

Commit

Permalink
fix: crawling FIle
Browse files Browse the repository at this point in the history
  • Loading branch information
bik1111 committed Jan 3, 2024
1 parent a48fcf8 commit bc44010
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/crawling/crawling_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,9 @@ def crawl_page(url):
logging.error(f"Crawling error: {str(e)}")
finally:
logging.info("Crawling end!!")
logging.info(data_list[0])
driver.quit()



def save_to_csv(data_list, file_path='output.csv'):
with open(file_path, mode='w', encoding='utf-8', newline='') as file:
writer = csv.DictWriter(file, fieldnames=data_list.keys())
Expand Down

0 comments on commit bc44010

Please sign in to comment.