Giter Club home page Giter Club logo

legco's Introduction

LegCo Advanced

attendance.js - To find the attendance of a certain Hong Kong LegCo Member for a specific quarter or period

speech.py - To find all the quotes of a certain Hong Kong LegCo Member in official council meetings records

made for the 7th LegCo

How to use

attendance.js

  1. Go to https://app2.legco.gov.hk/members-participation-records/en/MemberList/2022-2025 and find the member you are interested in
  2. Pick the sections you are interested in
  3. Copy and run the code in your browser's console. Check the console message for the result

Note: Edit the code at line 39 to the quarter or period you want. By default, it is 2023Q2

speech.py

  1. Download the specific driver for the browser you chose

Some of the famous choices:

By default, Safari is used. Edit Line 20~24 if you would like to use the others.

  1. Run the code
  2. You would be prompted to input the Chinese full name of the desired LegCo Member. For example, input "葉劉淑儀" if you are interested in Hon Mrs. Regina IP LAU Suk-yee
  3. You would be prompted to select where to save the output document
  4. The code would run and output a Word document "speech.docx"

Edit the last line of code if you want it renamed

Users who have never used Python may download the executable (for macOS only as of Jun 27, 2023) on the releases page

Disclaimer

This repository is not affiliated with or endorsed by the Legislative Council of Hong Kong.

The Legislative Council of Hong Kong is the copyright owner of data retrieved from its open data API.

legco's People

Contributors

fymf114 avatar

Watchers

 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.