Generates a word cloud image according to first 1000 ptt article titles.
- Install the library "requests"
pip install requests
- Install the library "BeautifulSoup"
pip install BeautifulSoup
- Install the library "jieba"
pip install jieba
- Install the library "wordcloud"
pip install wordcloud
- Install the library "matplotlib"
pip install matplotlib
- Install the library "numpy"
pip install numpy
- Install the library "pandas"
pip install pandas
- Install "chrome webdriver"
Please go to this webpage to download - Clone this repository
git clone https://github.com/michael21910/ptt-word-cloud-generator.git
- Execute the program file "index.py"
A word cloud in a fixed picture(you can go to cloud.png to see the picture), within the words after web crawling and word hyphenation using jieba.
Note that the word cloud image would change since the first 1000 ptt articles are always changing.
MIT © Tsuen Hsueh