Code Monkey home page Code Monkey logo

pttstatistics's Introduction

PttStatistics

統計PTT看板推文 or 文章標題 熱門關鍵詞 for Windows and Linux on python

特色

  • 統計PTT看板 推文 or 文章標題 熱門關鍵詞

使用方法

pyhton PttStatistics.py [統計型態] [板名] [爬取頁數]

執行範例

範例一

python PttStatistics.py title gossiping 10

抓取PTT gossiping (八卦板) 10頁,統計 文章標題 熱門關鍵詞

範例二

python PttStatistics.py push gossiping 10

抓取PTT gossiping (八卦板) 10頁,統計 推文內容 熱門關鍵詞

執行畫面

範例一

alt tag

alt tag

範例二

alt tag

alt tag

如斷詞不夠精準,可自行將詞加入至"dictNew.txt"裡面,以增加斷詞準確度

輸出格式

文字檔(.txt)

格式( "詞" "次數" )

alt tag

可借用 tableau 輸出圖片

alt tag

External

執行環境

  • Ubuntu 12.04
  • Python 2.7.3

License

MIT license

pttstatistics's People

Contributors

twtrubiks avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

shihyu jell0720

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.