Giter VIP home page Giter VIP logo

tk-tweets's Introduction

Tweede Kamer Tweets

A network visualization and analysis on the twitter activity of 'Tweede Kamerleden': members of the Dutch 2nd Chamber of Parliament.

figure

Starting as a small project with the aim to learn webscraping, twitter analysis and network visualization whilst visualizing some interesting information.

Lay-out of the project

The python code is found in Tweede Kamer Anonymised API.ipynb. For interaction with the twitter API private keys are needed, which (obviously) can't be published. All new development is thus first tested on a local directory. All data scraped from twitter can be found in Data/textfiles. Data/csv contains network data and information used in Gephi to visualize the network. Gephi project files and visualized output can be found in Visualizations.

Main dependencies are common packages. The imports are all at the top of the .ipynb file: if they don't run please pip-install required packages.

  • Webscraping to get twitter accounts is done using BeautifulSoup, requests and Selenium.
  • Twitter information is found using python-twitter
  • Data is formatted and analyzed using Pandas and networkx
  • Visualized using Gephi & Inkscaper

To-Do

Urgent

  • Code works, but is very messy and needs to be improved to pep-8 standard
  • Include multiple forced and unforced network visualizations
  • Run network analyses (centrality, betweenness, etc.) and visualize those results (partly done)

Future

  • Improve structure of project files if project grows bigger
  • Expand visualisation to not only include Tweede Kamerleden, but also every account encountered during twitter search to visualize possible information-bubbles.

tk-tweets's People

Contributors

rmfaber 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.