{"repo":"drkostas/Cross-The-Floor","free":true,"listed":false,"github":"https://github.com/drkostas/Cross-The-Floor","clone":"git clone https://github.com/drkostas/Cross-The-Floor.git","description":"Uses Sankey Diagrams to visualize politicians that have \"crossed the floor\" from election to election.","language":"HTML","stars":12,"topics":["python","plotly","crawling","wikipedia","sankey-diagram","parliamentary-elections"],"license":"GPL-3.0","category":"scrapers-browser-automation","readme_excerpt":"Cross The Floor Viz Uses Sankey Diagrams to visualize politicians that have \"crossed the floor\" from election to election. Getting Started These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system. Prerequisites 1. Python 3 1. Plotly Orca Installing Installing Plotly Orca - Method 1: $ conda install -c plotly plotly-orca - Method 1: $ npm install -g electron@1.8.4 orca - Method 1: $ docker pull quay.io/plotly/orca Create python virtual environment and source it Installing the requirements Run setup.py Running Create a yml configuration file with the following structure Some info about the yml 1. [wikipedia link] : Wikipeda page that contains a table with the list of parliament members of some year [example%E2%80%932019) 1. [html table header] : The Table Header 1. First click View Page Source on the wikipedia page 1. Spot the table with the parliament members 1. Copy the header of the table - usually it starts with a tag 1. [Name Column] : The name of the column that represents the members' names 1. [Parliamentary group column name on wikipedia] : The name of the column that represents the parliamentary groups' names 1. [Parliamentary group column name to be shown on on plot] : The value with which you want the previous attribute to be replaced on the plot 1. [column name to ignore] : If in the page source there is table column with the","default_branch":null,"files":null,"tree":[],"storefront":"/r/drkostas","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/drkostas/Cross-The-Floor/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}