파이썬 13

단어 빈도 분석 | Word Frequency Analysis (24.02.2022.)

다음은 성공한 제품 리뷰와 성공하지 않은 제품 리뷰 각각으로 단어 빈도 분석 시 사용한 코드이다. The following are the steps and codes that I used for the word frequency analysis for each of the successful and unsuccessful product reviews. 1. Import necessary packages. import pandas as pd import matplotlib.pyplot as plt import re import nltk from nltk.corpus import stopwords from wordcloud import WordCloud 2. Download stopwords package...

세포라 리뷰 웹 크롤링 - 2 | Sephora Review Web Crawling - 2 (24.02.2022.)

리뷰 별점과 도움 수 데이터를 추가 수집하기 위해서 기존의 웹 크롤링 코드를 약간 수정하였다. Since I decided to collect rating and helpfulness data from the Sephora webpage, I slightly changed the web crawling code. 1. Import necessary packages. import time import openpyxl from openpyxl import Workbook import random from selenium import webdriver from selenium.webdriver.chrome.options import Options 2. Web crawling wb = Workbook(write..

세포라 웹사이트 리뷰 크롤링 | Sephora Website Review Crawling (18.02.2022.)

나는 웹 크롤링을 위해 셀레니움을 사용하고자 한다. I'm going to use selenium for web crawling. 1. Import all the necessary packages. import time import openpyxl from openpyxl import Workbook import random from selenium import webdriver from selenium.webdriver.chrome.options import Options 2. Web crawling wb = Workbook(write_only=True) ws1 = wb.create_sheet('except_date') ws2 = wb.create_sheet('date') ws1.append(['bra..