Skip to content

michael21910/ptt-word-cloud-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PTT word cloud generator

Generates a word cloud image according to first 1000 ptt article titles.

Things you need to do 📖

  • 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"

What will you get 🍦

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.

Demo 👀

  • Demo 1
    ptt-crawling
  • Demo 2
    ptt-crawling2

Note that the word cloud image would change since the first 1000 ptt articles are always changing.

License

MIT © Tsuen Hsueh

About

Generates a word cloud image according to ptt

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages