Code Monkey home page Code Monkey logo

mepcheck's People

Contributors

alanmarazzi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

mepcheck's Issues

Is this still working?

Hi,

Thank you for this project.

I was trying to use this library but I the MP´s for Portugal are not correct, they are not the ones from the last election.
For example Portugal it says that they are attending the parliament in 2021 but they are no longer there:

MPs = mepcheck.get_meps(country = "portugal")
+-----+----------------------------+----------+
| ID | Name | Country |
+-----+----------------------------+----------+
| 28 | Francisco Assis | Portugal |
| 112 | Carlos Coelho | Portugal |
| 187 | José Inácio Faria | Portugal |
| 190 | José Manuel Fernandes | Portugal |
| 194 | Elisa Ferreira | Portugal |
| 195 | João Ferreira | Portugal |
| 240 | Ana Gomes | Portugal |
| 427 | António Marinho E Pinto | Portugal |
| 435 | Marisa Matias | Portugal |
| 446 | Nuno Melo | Portugal |
| 463 | Cláudia Monteiro De Aguiar | Portugal |
| 547 | Paulo Rangel | Portugal |
| 559 | Sofia Ribeiro | Portugal |
| 564 | Liliana Rodrigues | Portugal |
| 565 | Maria João Rodrigues | Portugal |
| 574 | Fernando Ruas | Portugal |
| 606 | Ricardo Serrão Santos | Portugal |
| 609 | Pedro Silva Pereira | Portugal |
| 703 | Miguel Viegas | Portugal |
| 747 | Carlos Zorrinho | Portugal |
| 748 | Inês Cristina Zuber | Portugal |
| 785 | João Pimenta Lopes | Portugal |
| 794 | Manuel Dos Santos | Portugal |
+-----+----------------------------+----------+

check = mepcheck.EUvotes(240)
check.print_attendance()
Last 50 votes attendance for Ana Gomes
+------------+-------+-----------------------------+
| Date | Vote | Topic |
+------------+-------+-----------------------------+
| 2021-01-21 | Loyal | Foreign & security policy |
| 2021-01-21 | Rebel | Employment & social affairs |
| 2021-01-21 | Loyal | Employment & social affairs |
| 2021-01-21 | Rebel | Employment & social affairs |
| 2021-01-21 | Loyal | Fisheries |
| 2021-01-21 | Loyal | Fisheries |
| 2021-01-21 | Loyal | Fisheries |
| 2021-01-21 | Loyal | Fisheries |
| 2021-01-21 | Loyal | Fisheries |
| 2021-01-21 | Loyal | Fisheries |
| 2021-01-21 | Loyal | Fisheries |
| 2021-01-21 | Loyal | Fisheries |
| 2021-01-21 | Rebel | Fisheries |
| 2021-01-21 | Loyal | Fisheries |
| 2021-01-21 | Loyal | Foreign & security policy |
| 2021-01-21 | Rebel | Foreign & security policy |
| 2021-01-21 | Rebel | Foreign & security policy |
| 2021-01-21 | Loyal | Foreign & security policy |
| 2021-01-21 | Loyal | Foreign & security policy |
| 2021-01-21 | Loyal | Foreign & security policy |
| 2021-01-21 | Loyal | Foreign & security policy |
| 2021-01-21 | Loyal | Foreign & security policy |
| 2021-01-21 | Loyal | Foreign & security policy |
| 2021-01-21 | Loyal | Foreign & security policy |
| 2021-01-21 | Loyal | Foreign & security policy |
| 2021-01-21 | Loyal | Foreign & security policy |
| 2021-01-21 | Loyal | Foreign & security policy |
| 2021-01-21 | Loyal | Foreign & security policy |
| 2021-01-21 | Loyal | Foreign & security policy |
| 2021-01-21 | Loyal | Foreign & security policy |
| 2021-01-21 | Loyal | Foreign & security policy |
| 2021-01-21 | Loyal | Foreign & security policy |
| 2021-01-21 | Loyal | Foreign & security policy |
| 2021-01-21 | Loyal | Foreign & security policy |
| 2021-01-21 | Loyal | Foreign & security policy |
| 2021-01-21 | Loyal | Gender equality |
| 2021-01-21 | Rebel | Gender equality |
| 2021-01-21 | Loyal | Gender equality |
| 2021-01-21 | Loyal | Gender equality |
| 2021-01-21 | Rebel | Gender equality |
| 2021-01-21 | Rebel | Gender equality |
| 2021-01-21 | Rebel | Gender equality |
| 2021-01-21 | Rebel | Gender equality |
| 2021-01-21 | Loyal | Gender equality |
| 2021-01-21 | Loyal | Gender equality |
| 2021-01-21 | Loyal | Gender equality |
| 2021-01-21 | Loyal | Gender equality |
| 2021-01-21 | Rebel | Gender equality |
| 2021-01-21 | Loyal | Gender equality |
| 2021-01-21 | Rebel | Gender equality |
+------------+-------+-----------------------------+

Thanks for your help

UnicodeEncodeError

I'm getting the following error, while trying to run the program:

jens@debian-vm:~/mepcheck$ python3.5 mepcheckCLI.py -c denmark
Traceback (most recent call last):
  File "mepcheckCLI.py", line 2, in <module>
    mepcheck_cli.cli()
  File "/home/jens/mepcheck/mepcheck/mepcheck_cli.py", line 16, in cli
    get_meps(args.country)
  File "/home/jens/mepcheck/mepcheck/mepcheck.py", line 36, in get_meps
    print(t)
UnicodeEncodeError: 'ascii' codec can't encode character '\xf8' in position 284: ordinal not in range(128)

I don't know Python very well, so I'm not sure what's wrong.

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.