-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathexport_data.py
More file actions
30 lines (24 loc) · 884 Bytes
/
export_data.py
File metadata and controls
30 lines (24 loc) · 884 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
from utils.export_data import ExportData
import time
def info_main():
key_map = {
'id': 'int__id',
'site_id': 'int_site_id',
'program_name': 'str_title',
'content': 'clob_content',
'program_url': 'str_url',
'release_date': 'date_release_time',
'image_url': 'str_image_url',
'image_code': 'int_sexy_image_status',
'video_download_url': 'str_video_download_url',
'find_date': 'date_record_time',
'OUT_CHAIN_STATUS': 'int_is_out_link'
}
export = ExportData('ZHEJIANG_CZVIDEO_info', 'TAB_VIDEO_PROGRAM_INFO', key_map, unique_key='PROGRAM_URL',
condition={'read_status': 0})#, 'site_id': 1023})#, "image_pron_status": 2})
export.export_to_oracle()
if __name__ == '__main__':
# db = OracleDB
while True:
info_main()
time.sleep(300)