Last time we discussed about the difference between crawling and scraping and some examples relating them.
2022.12.06 - [Python] - Python) Crawling and Scraping1
Here in this post, we will search by utilizing Naver API and the selenium library.
You first have to register your application on the provided website.
https://developers.naver.com/products/service-api/search/search.md
First, import the urllib.
You need the key that you got issued on the Naver API website.
Save the content in the result variable.
Then, save it in the txt file.
You can also search for news articles. You can set the number of news articles you need with the keyword.
First, import the libraries, and
Crawling
Save the result into xlsx file.
Convert the xlsx file into txt file.
Now, let's use this file to make a word cloud.
Please refer to my previous post if you need some references.
2022.12.10 - [Python] - Python) WordCloud
Move the files saved into the data folder and make a word cloud!
You can also make a graph reflecting the frequency of the words.
Word Cloud
Word cloud with mask
'Python' 카테고리의 다른 글
Python) Crawling and Scraping1 (0) | 2022.12.08 |
---|---|
Python) WordCloud (0) | 2022.12.07 |
Python) Graphs (0) | 2022.12.04 |
Python) Data Analysis - pandas (0) | 2022.12.03 |
Python) functions for data analysis (0) | 2022.11.30 |