Skip to main content

A Python package for scraping marathon and running event schedules in Korea

Project description

Korean Marathon Schedule Scraper

PyPI version Python 3.8+

국내 마라톤, 러닝 대회 스케줄 정보를 수집하고 제공하는 Python 패키지입니다.

설치

pip install kr-marathon-schedule

사용법

프로그래밍 방식

from kr_marathon_schedule import get_marathons

# 현재 년도 마라톤 정보 가져오기
marathons = get_marathons()
print(f"총 {len(marathons)}개의 마라톤 대회")

# 특정 연도 지정
marathons_2024 = get_marathons("2024")

CLI 사용

# 기본 사용 (JSON 형식)
kr-marathon-schedule

# CSV 형식으로 저장
kr-marathon-schedule --format csv --output ./data --verbose

# 특정 연도 지정
kr-marathon-schedule --year 2024

# 도움말
kr-marathon-schedule --help

데이터 형식

{
  "year": "2025",
  "date": "1/1",
  "month": 1,
  "day": 1,
  "day_of_week": "수",
  "event_name": "2025 선양맨몸마라톤",
  "tags": ["7km"],
  "location": "대전 엑스포과학공원 물빛광장",
  "organizer": ["(주)선양소주"],
  "phone": "042-580-1823"
}

개발

git clone https://github.com/yourusername/kr-marathon-schedule.git
cd kr-marathon-schedule
pip install -e .

라이센스

MIT License

데이터 소스

https://raw.githubusercontent.com/pilyeooong/kr-marathon-schedule/refs/heads/master/marathon_data/latest-marathon-schedule.json

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

kr_marathon_schedule-0.1.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kr_marathon_schedule-0.1.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file kr_marathon_schedule-0.1.0.tar.gz.

File metadata

  • Download URL: kr_marathon_schedule-0.1.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.6

File hashes

Hashes for kr_marathon_schedule-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ddc162c29021ce6898f5de32be03150daf935409c3957f76850009510e36a7d5
MD5 15b0d971cd2c0135befeb8761ed619f4
BLAKE2b-256 30817b1863a0f03e67c2bd02ed2e08286523d165c49ae10e215751482de78eee

See more details on using hashes here.

File details

Details for the file kr_marathon_schedule-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for kr_marathon_schedule-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 09e80f5891b29d5308bf67e64ce4cc7a4ef24b32fae8e104460b462320673cd0
MD5 5bf396c89f179d8e2988b54e359a98e0
BLAKE2b-256 438d683cd9190aeee63f47c8822db685d607de64986d064ae1bf9b75fcca8de3

See more details on using hashes here.

Supported by

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