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.1.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.1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kr_marathon_schedule-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 882e376ed3cf867db2839381feda64ec18b3ed09679a2ef37043bcb0bce9c444
MD5 b481d1076412c19acaf1a46f9cec7001
BLAKE2b-256 d6669766a129244cf698abe5d31752251ed4b885f9965479fb1f73154b405550

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kr_marathon_schedule-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c1a99dc900583e716286c6ff6c4d4162d8600801946f1c56ee28fcf6216ffd49
MD5 b59150d79e72932df066f3a00d1dbf1a
BLAKE2b-256 3b113e380cdba2a74c021805adc43580bb13d015202c6682ee3e608f1c738a67

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