{"id":26487129,"url":"https://github.com/alanmarazzi/mepcheck","last_synced_at":"2025-03-20T06:34:03.563Z","repository":{"id":57440875,"uuid":"85972105","full_name":"alanmarazzi/mepcheck","owner":"alanmarazzi","description":"Python package to retrieve MEPs voting data from Votewatch.eu. Check what your MEPs are doing in a few simple commands.","archived":false,"fork":false,"pushed_at":"2021-03-13T00:35:21.000Z","size":48,"stargazers_count":7,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-20T18:19:41.338Z","etag":null,"topics":["data","data-retrieval","europe","european-parliament","mep","meps","politics","python","scraper","voting-data"],"latest_commit_sha":null,"homepage":"https://www.rdisorder.eu/2018/01/19/releasing-mepcheck/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alanmarazzi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-23T16:26:58.000Z","updated_at":"2023-04-20T01:26:53.000Z","dependencies_parsed_at":"2022-09-02T12:22:42.894Z","dependency_job_id":null,"html_url":"https://github.com/alanmarazzi/mepcheck","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alanmarazzi%2Fmepcheck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alanmarazzi%2Fmepcheck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alanmarazzi%2Fmepcheck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alanmarazzi%2Fmepcheck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alanmarazzi","download_url":"https://codeload.github.com/alanmarazzi/mepcheck/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244566655,"owners_count":20473446,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data","data-retrieval","europe","european-parliament","mep","meps","politics","python","scraper","voting-data"],"created_at":"2025-03-20T06:34:03.000Z","updated_at":"2025-03-20T06:34:03.556Z","avatar_url":"https://github.com/alanmarazzi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![alt text](http://i.imgur.com/0WoVJru.png \"MEPcheck\")\n\n[![Build Status](https://travis-ci.org/alanmarazzi/mepcheck.svg?branch=master)](https://travis-ci.org/alanmarazzi/mepcheck) [![codebeat badge](https://codebeat.co/badges/ef1d1338-e6de-49b5-b1d6-da0cba215da9)](https://codebeat.co/projects/github-com-alanmarazzi-mepcheck-master) [![codecov](https://codecov.io/gh/alanmarazzi/mepcheck/branch/master/graph/badge.svg)](https://codecov.io/gh/alanmarazzi/mepcheck) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n\n# What is it\n\n**MEPcheck** is a Python package for easy and automatic retrieval of voting data about MEPs (Members of European Parliament). Many people complain they don't know what the EU is doing and especially what MEPs from their country are doing. Take control of your representatives and easily show others what's happening in Brussels/Strasbourg!\n\n# Try it\n\nTo try MEPcheck you can install via pip:\n\n```bash\npip install mepcheck\n```\n\nOr cloning this GitHub repo:\n\n```bash\ngit clone https://github.com/alanmarazzi/mepcheck.git\n```\n\nThen you can install it as a regular package after installing dependencies:\n\n```bash\ncd mepcheck\npip install -r requirements.txt\npip install .\n```\n\n# Command Line Interface\n\nAfter installing you can use **MEPcheck** directly from the command line with\n\n```bash\npython mepcheckCLI.py # prints available countries\npython mepcheckCLI.py -c spain # prints MEPs from inserted country and their ids\npython mepcheckCLI.py --mep 123 # see last 50 votes of a MEP\npython mepcheckCLI.py --mep 123 --limit 10 # limit to last 10 votes\npython mepcheckCLI.py --mep 123 -s # get a summary by time frame\npython mepcheckCLI.py --mep 123 -d json # get votes in json format\n```\n\n# From Python\n\nYou can import the `mepcheck` module in Python and use it interactively or programmatically:\n\n```python\nfrom mepcheck import EUvotes, get_meps\n```\n\nNow you can start retrieving data for all MEPs from [Votewatch](http://www.votewatch.eu/), to check all MEPS and their ids use `get_meps`: if you don't pass any argument you'll get a list of all available countries, if you pass a country you'll get a table with all the MEPs from that country and their id for data retrieval:\n\n```python\nget_meps()\nget_meps(country='latvia')\n```\n\nTo get data use the `EUvotes` class, you can just pass the id of the MEP you're interested in and then you can take a look at the data right away:\n\n```python\nvotes = EUvotes(123, limit=20)\nprint(votes)\nvotes.print_attendance(summary=True)\n```\n\nTo use data you can return all retrieved data in various formats: *json*, *list* or if you like in a [pandas](http://pandas.pydata.org/) *DataFrame*:\n\n```python\nvotes.data_(shape='list', limit=10)\n```\n\nNote that if you want a *DataFrame* you have to install pandas since it is not a requirement.\n\nYou can also increase or decrease the number of votes stored in the **EUvotes** object after initialization:\n\n```python\nvotes.change_limit(limit=200)\n```\n\n# Docker\n\nIf you want **MEPcheck** to work out of the box and use it from everywhere without messing with your *PATH*, just build it with *Docker*.\n\nThe process after cloning this repo is:\n\n```bash\ncd mepcheck\ndocker build -t mepcheck .\n```\n\nThen just put in your `.bashrc` file:\n\n```bash\n# Remember to put `sudo` before the command if you need to\nalias mepcheck='docker run --rm mepcheck'\n```\n\nNow either you `source ~/.bashrc` or close and reopen your terminal, at this point you can try it with:\n\n```bash\nmepcheck --mep 123\n```\n\n# Contributing\n\nI'm open to any kind of contribution: ideas, pull requests and bug signaling are welcome.\n\n## Thanks to\n\n- [logomakr](https://logomakr.com/)\n- [Votewatch](http://www.votewatch.eu/)\n- [Beautiful Soup](https://www.crummy.com/software/BeautifulSoup/)\n- [requests](http://docs.python-requests.org/en/master/)\n- [prettytable](https://pypi.python.org/pypi/PrettyTable)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falanmarazzi%2Fmepcheck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falanmarazzi%2Fmepcheck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falanmarazzi%2Fmepcheck/lists"}