我正在使用批量服务从Bing下载一些表,并希望根据时间限制数据量。在我的下载参数中,我使用report_time_period = ['Yesterday']
,但一直收到错误TypeError: __init__() got an unexpected keyword argument 'report_time_period'
这是我的其他参数似乎正在起作用:
download_parameters = DownloadParameters(
data_scope=['EntityData'],
download_entities= ['Keywords'],
report_time_period = ['Yesterday'], #error
file_type=REPORT_FILE_FORMAT,
last_sync_time_in_utc=None,
result_file_directory = FILE_DIRECTORY,
result_file_name = DOWNLOAD_FILE_NAME,
overwrite_result_file = True,
timeout_in_milliseconds=3600000
)