Skip to content

Releases: HaramSs/movdata

Release list

v0.2

Choose a tag to compare

@HaramSs HaramSs released this 18 Aug 11:10

MOVIE DATA 수집 프로그램 만들기

VERSION

  • 0.2 : 이미 다운 받은 data 는 skip

SAVE DATA

$ tree data
data
└── movies
    ├── year=2015
    │   └── data.json
    ├── year=2016
    │   └── data.json
    ├── year=2017
    │   └── data.json
    ├── year=2018
    │   └── data.json
    ├── year=2019
    │   └── data.json
    ├── year=2020
    │   └── data.json
    └── year=2021
        └── data.json

test.py

def test_save_movies():
    for i in range(2015, 2022):
        r = save_movies(year=i, sleep_time=0.1)
        assert r

SKIP DATA

source code

if os.path.exists(file_path):
        print(f"데이터가 이미 존재합니다: {file_path}")
        return True

result
image