Skip to main content

pyBigKinds

pyBigKinds는 한국 언론의 빅데이터 저장소인 BigKinds에서 추출한 데이터를 코드 없이(No-Code) 웹 앱으로, 또는 low-code Python 함수로 분석할 수 있게 만든 툴입니다.

Requirements

  • Python >= 3.10
  • 한글 폰트: Windows(맑은 고딕)와 macOS(AppleGothic)는 기본 폰트를 사용합니다. Linux에서는 NanumGothic(예: sudo apt-get install fonts-nanum) 등 한글 폰트를 설치해야 워드클라우드와 그래프의 한글이 정상 출력됩니다.

Installation

  • macOS

    python3 -m pip install pyBigKinds
    
  • Windows, linux

    python -m pip install pyBigKinds
    

No-Code 앱 (v2.0+)

python -m pip install "pyBigKinds[app]"
pybigkinds app

브라우저가 열리면 BigKinds에서 내려받은 xlsx를 업로드하세요.

  • BigKinds는 한 번에 20,000건까지만 내보내므로, 기간을 나눠 받은 여러 파일을 한꺼번에 올리면 하나로 합쳐집니다. 파일 사이에 겹친 기사는 자동으로 제거됩니다.
  • 개요(언론사별 기사 수·기간), 키워드 빈도·워드클라우드, TF-IDF, 군집·차원축소, LDA·연관규칙 탭을 제공합니다.
  • 모든 표는 CSV, 그림은 PNG로 내려받을 수 있습니다.

Extras

설치 포함
pip install pyBigKinds 전처리·빈도·TF-IDF·군집·차원축소·시각화
pip install "pyBigKinds[ml]" + lda, association (tomotopy, mlxtend)
pip install "pyBigKinds[app]" + No-Code 웹 앱 (streamlit)
pip install "pyBigKinds[all]" 전부

v2.0 변경: lda()·association()을 쓰려면 [ml] extra를 설치해야 합니다. 그 외 v1 코드는 수정 없이 동작합니다.

Usage (Python)

import pyBigKinds as bk

# 여러 파일 병합 + 중복 제거
df = bk.read_bigkinds(["2023_01-06.xlsx", "2023_07-12.xlsx"])
import pyBigKinds as bk

bk.press_counter(df)

import pyBigKinds as bk

bk.keywords_wordcloud(df, "중앙일보")

# show=False이면 그림을 띄우지 않고 matplotlib Figure를 반환합니다
fig = bk.top_words(df, "중앙일보", show=False)
fig.savefig("top_words.png")

License

MIT

you have some issue?

사용 중 문제 발생 시, 해당 Repo issue에 등록해주세요.

Metadata

Release files for pyBigKinds 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyBigKinds 2.0.0
File Size Uploaded Provenance Actions
pybigkinds-2.0.0.tar.gz 20.1 kB Without provenance Details for pybigkinds-2.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyBigKinds 2.0.0
File Interpreter ABI Platform Actions
pybigkinds-2.0.0-py3-none-any.whl Python 3 none any Details for pybigkinds-2.0.0-py3-none-any.whl

Total release size: 38.4 kB

Release files / pybigkinds-2.0.0.tar.gz

Download URL pybigkinds-2.0.0.tar.gz
Size 20.1 kB
Tags Source
SHA-256 checksum
How to use checksums
351080ad2d6e931925e393853037c39f9de04ba1c045d373e9745493522568c9
BLAKE2b-256 checksum
How to use checksums
d0502e08e5858a340d563ccf9191fac2056aba30364834779f79494dd73b12a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / pybigkinds-2.0.0-py3-none-any.whl

Download URL pybigkinds-2.0.0-py3-none-any.whl
Size 18.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4958ed7e15e06405d60a8b22eb76a49223326a85c2e3177186e2f274e304c41a
BLAKE2b-256 checksum
How to use checksums
f1f00fe3bc1acd4ae3c88119f2a7f4da35d888acd67d836b4414a00d06887091
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for pyBigKinds 2.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page