Git Product home page Git Product logo

10__-'s Introduction

License: MIT

Stack Overflow (Stack Exchange) Users Tag Cloud

Stack Exchange is a network of Q&A websites covering various fields. Users earn reputation and score tag points based on the tags of the questions and answers they involve themselves with. Each user has a tag section under his/her profile page that lists the tag names and the respective counts. The Python scripts in this repository parse and extract the tag names and scores, which could then be fed to wordcloud module for Python to produce a word cloud image with tags being the words and their respective sizes being proportional to the respective scores. The scripts could extract such information from all Stack Exchange Q&A sites, including of course it's biggest Q&A site Stack Overflow.

Examples

Let's take Stack Overflow's highest reputation user Jon Skeet as the sample. His profile page link has the ID : 22656. So, a minimal Python script to generate his tag-cloud would be -

>>> from stackoverflow_users_taginfo import tag_cloud
>>> tag_cloud(link = 22656)

Giving it more options, here's a tag-cloud with the first 1000 tags on a 4K canvas being produced using example_extensive.py -

Screenshot

As a demo on extracting tag information and generating tag-cloud from other Q&A sites, here's a tag-cloud of Jon Skeet's meta.stackexchange profile generated with example_extensive2.py -

Screenshot

We are living in 8K age, so here's Jon Skeet's 1000 tags on 8K canvas!

Requirements

  • Python 2.x or 3.x.
  • Python modules : NumPy, Requests, urllib.
  • BeautifulSoup - To extract html information. Works with version 4.4.1, might work with older versions too, but not tested.
  • Word_cloud - Word cloud creation : Version 1.3.1 or newer.

10__-'s People

Contributors

wyt12345 avatar

Stargazers

 avatar

Watchers

James Cloos avatar  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.