https://github.com/eunchuldev/dcinside-python3-api
import dc_api
import asyncio
async def main():
api = dc_api.API()
# Write a document
doc_id = await api.write_document(board_id="api", title="알비(Rb, 구상민, 前 Team 이카루스) 님 댓글 '사기리'가 뭐지?", contents="알비(Rb, 구상민, 前 Team 이카루스) 님 댓글 '사기리'가 뭐지?", name="개구리님", password="4414")
print(f"Document ID: {doc_id}")
await api.close()
async def run_repeatedly():
while True:
await main()
await asyncio.sleep(60) # wait for 2 hours
loop = asyncio.get_event_loop()
task = loop.create_task(run_repeatedly())
'잡동사니' 카테고리의 다른 글
gather id (0) | 2023.02.21 |
---|---|
img crwaler (0) | 2022.08.13 |
auto guestbook 23.02.11 fixed (0) | 2022.05.10 |
개구리 (0) | 2022.05.09 |