theharshpat / book-to-wordcloud

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

book-to-wordcloud

This tool can be used to generate a word cloud by providing the public domain book name. Book name will be searched from project gutenberg's website and appropriate book will be downloaded in text format. After downloading the book in text format, licence information is removed for better accuracy. Book text will be processed and based on the frequency of each word, word cloud will be generated as "image.png" file in the working directory.

Installation

Activate python virtualenv and run following command to install the requirements:

pip install -r requirements.txt

Usage

After activating the virtualenv, run the script file with book name:

python script.py [book name]

After running the script, book will be downloaded in text format, will be processed and word cloud image will be generated in current directory.

Screenshot

Screenshot 2021-11-13 at 10 56 58 PM

About


Languages

Language:Python 100.0%