轻松访问Kit SeatFinder的数据。本项目与https://www.seatfinder.de的原始作者没有任何关联/
seatfinder的Python项目详细描述
seatfinder python api(非官方)
轻松访问https://seatfinder.de数据。 在后台缓存数据,任何内容都不会被下载两次。
安装
pip install seatfinder
用法
from seatfinder import Seatfinder
seatfinder = Seatfinder('Kassel') # optional parameter data_dir. Default ~/.seatfinder/data
seatfinder.seat_estimate['2018-09-29']
# Slicing is also possible
data = seatfinder.manual_count['2018-09-01':'2018-10-30']
# `data` is a dict, access locations via key
data['LeoEG']
# More information about the location
seatfinder.locations['LeoEG']
# Convert to pandas dataframe
df = data.to_dataframe()