Skip to main content

Data analysis tool for Korean National Assembly

Reason this release was yanked:

version too old

Project description

dearAJ

Data analysis tool for Korean National Assembly

Install

pip3 install dearaj

or

git clone https://github.com/anzhi0708/dearAJ
cd dearAJ
make install

Usage

from dearaj import *

MPList

Collection of single MPs using data from 열린국회정보.

>>> MPList(20)
MPList(male=267, female=53, total=320)
>>> for mp in MPList(19):
...     if mp.name == '문재인':
...             print(mp)
...
MP(generation=19, name='문재인', party='민주통합당', committee=[], region='부산 사상구', gender='남', n='초선', how='지역구')

Conferences

Conferences(n) is the collection of nth assembly's conferences.

>>> Conferences(19)
<Conferences of 19th, total: 2605>
>>> Conferences(19)[0]
Conference(sami='1', angun_type=[], minutes='1', ct1='19', ct2='342', ct3='01', open_time='10:25', date='2016-05-19', hand_lang='0', mc='10', conf_title='제342회 국회(임시회) 제01차 본회의', comm_name='본회의', qvod=0)

Conference's property .pdf is the PDF file raw bytes data. Use open(output_file_path, "wb").write(conference.pdf) to save PDF file.

get_conferences_of

The crawler class. Use get_conferences_of(nth, save=True) to save JSON data to csv files.

License

Copyright Anji Wong, 2022.

Distributed under the terms of the Apache 2.0 license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dearaj-0.0.2.tar.gz (260.1 kB view hashes)

Uploaded Source

Built Distribution

dearaj-0.0.2-py3-none-any.whl (312.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page