19 lines
569 B
Python
19 lines
569 B
Python
import asyncio
|
||
|
||
import config
|
||
from post_manager import create_new_account, create_post, update_post, telegraph
|
||
from utillies import check_tags
|
||
|
||
|
||
### Создание aккаунта в telegraph
|
||
|
||
account = asyncio.run(create_new_account(short_name=config.AUTHOR_DATA["short_name"]))
|
||
|
||
|
||
### Создание поста в telegraph
|
||
|
||
article_file = open("content.txt", "r", encoding="utf-8")
|
||
article_file = article_file.read()
|
||
checked_article = asyncio.run(check_tags(content=article_file))
|
||
new_post = asyncio.run(create_post(title="test_title", content=checked_article))
|