Skip to content

BurnyCoder/word-cloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Word Cloud Generator

Small Python script that turns a text file into a word cloud SVG without any third-party dependencies.

Features

  • Pure standard-library Python
  • Cleans markdown-style text and URLs before tokenizing
  • Filters common stopwords
  • Produces reproducible layouts with a configurable random seed
  • Writes scalable SVG output

Usage

python create_wordcloud.py --input output.txt --output output_wordcloud.svg

Common options

python create_wordcloud.py \
  --input output.txt \
  --output output_wordcloud.svg \
  --width 1600 \
  --height 900 \
  --max-words 320 \
  --min-word-length 2 \
  --seed 7

Example Output

The script writes SVG. The preview below is an exported PNG example generated from the same word cloud output.

Example word cloud

Requirements

  • Python 3.10+

Files

  • create_wordcloud.py: main script
  • output_wordcloud.png: example image shown above

About

Pure Python word cloud SVG generator with example output

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages