GithubHelp home page GithubHelp logo

wordcloud-readme's Introduction

Wordcloud Generator

This is a simple Python script that generates a wordcloud from a readme file. You can customize the settings of the wordcloud by editing the config file.

Requirements

  • Python 3.6 or higher
  • wordcloud
  • bs4
  • PIL
  • numpy
  • configparser

Usage

  • Edit the config.ini file to change the parameters of the wordcloud, such as the readme file path, the mask file name, the dimensions, colors, etc, in the [DEFAULT] section. You can also specify the words you want to exclude from the wordcloud in the [EXCLUSIONS] section. Additionally, you can set the wordcloud_output parameter to define the name of the wordcloud image file that will be saved.
  • Run the wordcloud-generator.py script using python wordcloud-generator.py.
  • The script will read the readme file, extract the text from the markdown content, and create the wordcloud. The wordcloud will be saved as the name specified by the wordcloud_output parameter in the same directory.
  • You can view the wordcloud image using any image viewer or editor.

Example

Here is an example of a wordcloud generated from this readme file, using a sherlock mask and saving the image as wordcloud.png:

GitHub Actions

You can also use GitHub Actions to run the script automatically whenever you commit changes to the readme file. To do this, you can use the workflow file update-readme.yaml from folder github-actions, update it to fit your needs and save it inside the .github/workflows/ form your git repo.

You can see it in practice in my personal Git repo.

Feel free to share any feeback.

wordcloud-readme's People

Contributors

ralucan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.