File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ async def fetch_detailed_url(articles):
90
90
detail_data = await response .json ()
91
91
# 'url' 값을 가져와 TELEGRAM_URL 생성
92
92
encoded_url = detail_data ['data' ].get ("url" , "" )
93
- telegram_url = f"https://m.db-fi.com/mod/streamDocs.do?docId ={ encoded_url } "
93
+ telegram_url = f"https://whub.dbsec.co.kr/pv/gate?q ={ encoded_url } "
94
94
article ["TELEGRAM_URL" ] = telegram_url
95
95
except json .JSONDecodeError :
96
96
print (f"Failed to parse JSON for { key_url } " )
@@ -103,10 +103,12 @@ async def fetch_detailed_url(articles):
103
103
104
104
async def main ():
105
105
articles = await DBfi_checkNewArticle ()
106
+ # print(articles)
106
107
detailed_articles = await fetch_detailed_url (articles )
107
- db = SQLiteManager ()
108
- inserted_count = db .insert_json_data_list (detailed_articles , 'data_main_daily_send' ) # 모든 데이터를 한 번에 삽입
109
- print (inserted_count )
108
+ print (detailed_articles )
109
+ # db = SQLiteManager()
110
+ # inserted_count = db.insert_json_data_list(detailed_articles, 'data_main_daily_send') # 모든 데이터를 한 번에 삽입
111
+ # print(inserted_count)
110
112
111
113
112
114
if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments