In this repo I've made a little experiment to create a WordCloud based on Netflix and CBC's Anne with an E.
To fetch the transcripts you have to open the index.html
file at the GetScript
folder. There, you have 2 buttons for the 1st and 2nd seasons of the series:
Now, open the DevTools. In Chrome:
- Windows:
Ctrl + Shift + I
- MacOS:
⌘ + ⎇ + I
When you click on the Seasons buttons, the following will appear at the DevTools console:
Copy the code of the chapter you want and paste it in the textbox near the Chapter button. Then, click the Chapter button and the transcript will download.
Open and edit the python file main.py
in the WordCloud
folder. The parameters you want to change are the silhouette image (<SILHOUETTE>
) and the text input (<FILENAME>
). Example files color_silhouette
and example_script
are provided.
Now, with a terminal open at the WordCloud
directory, run the python file with python main.py
.
Thanks to Andreas Mueller for creating the WordCloud (GitHub) library.
This repo is MIT licensed.