-
220211[코딩공부기록] Matplotlib 이용 그래프 그리기
https://www.youtube.com/watch?v=3Xc3CA655Y4 최근 발견한 프로그래머 Keith Galli 유투버 수업 따라하기! import matplotlib.pyplot as plt import numpy as np import pandas as pd x=[0,1,2,3,4] y=[0,2,4,6,8] # 내가 만든 그래프 싸이즈 조정해주기(저장시에는 300픽셀로 저장 권장) plt.figure(figsize=(8,5), dpi=80) #plt.plot(x,y, label='2x', color='red', linewidth=2, marker='.', markersize=10) # 위 처럼 각각의 꾸미기 특성을 써줄 수 있으나 주로 약칭 이용 # fmt = '[color][marker]..
2022.02.11
-
220123-3 [코딩공부] 네이버금융 많이본뉴스 크롤링 및 워드크라우드 만들기
from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.chrome.service import Service s = Service('c:/users/smile/desktop/chromedriver.exe') driver = webdriver.Chrome(service=s) url='https://finance.naver.com/news/news_list.naver?mode=RANK' driver.get(url) news_title=driver.find_element(By.CLASS_NAME,"hotNewsList") news_title2=news_title.find_elements(B..
2022.01.23
-
220123-2 [코딩공부] 쥬피터 노트북에서 wordcloud 설치 오류시 해결방법
쥬피터 노트북에서 !pip install wordcloud(워드크라우드 설치) 진행시 아래와 같은 오류가 발생하였다. 이리저리 구글링 해보고 이것저것 시도해 본 결과 내가 해결한 방법은 아래와 같다. 구글링(검색어 ERROR: Failed building wheel for wordcloud)을 하다가 발견한 방법 3가지(위 사진 아래 $) 내 경우에는 아나콘다 프롬프트에서 pip install wordcloud 또는 conda install wordcloud를 시도해 보았으나 되지 않았고 conda install -c https://conda.anaconda.org/conda-forge wordcloud를 설치해보니 문제가 해결되었다. 여전히 코끼리 다리를 더듬고 있지만 해결이 된 것 만으로도 대만족!!!
2022.01.23
-
220123 [코딩공부] 워드크라우드 만들기
from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys from selenium.webdriver.chrome.service import Service s = Service('c:/users/smile/desktop/chromedriver.exe') driver = webdriver.Chrome(service=s) url='https://class101.net/search?page=1&query=%EC%9C%A0%ED%88%AC%EB%B8%8C&sort=latestOrder' driver.get(url) first_sel=driver.find..
2022.01.23
-
220122 [코딩공부] 넷플릭스 크롤링 엑셀 저장하기
from selenium import webdriver from selenium.webdriver.chrome.service import Service s = Service('c:/users/smile/desktop/chromedriver.exe') driver = webdriver.Chrome(service=s) url='https://www.netflix.com/ph/browse/genre/839338' driver.get(url) html=driver.page_source from bs4 import BeautifulSoup soup=BeautifulSoup(html,'html.parser') section_list=soup.select('section.nm-collections-row') coun..
2022.01.22
-
220121 [코딩공부] 넷플릭스 크롤링-카테고리별 프로그램명 찾기
from selenium import webdriver from selenium.webdriver.chrome.service import Service s = Service('c:/users/smile/desktop/chromedriver.exe') driver = webdriver.Chrome(service=s) url='https://www.netflix.com/ph/browse/genre/839338' driver.get(url) html=driver.page_source from bs4 import BeautifulSoup soup=BeautifulSoup(html,'html.parser') section_list=soup.select('section') section=section_list[2]..
2022.01.22
-
220120 [코딩공부] 넷플릭스크롤링 영화제목가져오기
from selenium import webdriver from selenium.webdriver.chrome.service import Service s = Service('c:/users/smile/desktop/chromedriver.exe') driver = webdriver.Chrome(service=s) url='https://www.netflix.com/ph/browse/genre/839338' driver.get(url) html=driver.page_source from bs4 import BeautifulSoup soup=BeautifulSoup(html,'html.parser') section_list=soup.select('section') section=section_list[2]..
2022.01.22