Prerequisites and Required Libraries
Learn how to install required libraries to generate and display a word cloud.
We'll cover the following
Introduction
To generate a word cloud we’ll use data from the following website:
https://us.trend-calendar.com/trend/2020-01-01.html
The above website stores archives of the trending keywords and hashtags each day. We’ll use Beautiful Soup to scrape data and build an application based on the following features:
-
A word cloud for the year 2020.
-
Provide the user an option to select a date and generate a word cloud for it.
-
Provide the user an option to change the image mask.
Prerequisites
- Basic familiarity with web scraping using Beautiful Soup.
- Knowledge of Streamlit is not necessary for generating the word clouds but a basic understanding of Streamlit is required to build the web app.
Install the required libraries
We need to install the following libraries:
- Streamlit
- Matplotlib
- Beautiful Soup
- pandas
- wordcloud
To install the above libraries, run the following line of code:
pip install pandas,streamlit,wordcloud,matplotlib,bs4
Get hands-on with 1400+ tech skills courses.