
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
๋งํฌ๋ค์ด ํ์ผ์ HTML๋ก ๋ณํํ์ฌ Blogger์ ๊ฒ์ํ๋ Python CLI ๋๊ตฌ์
๋๋ค.
Google Blogger API์ ๋ค์ํ ์ด๋ฏธ์ง ์
๋ก๋ ์๋น์ค๋ฅผ ์ง์ํฉ๋๋ค.
Python 3.8 ์ด์์ด ํ์ํฉ๋๋ค.
git clone [YOUR_REPO_URL]
cd markdown_to_blog
# rye๊ฐ ์๋ค๋ฉด ๋จผ์ ์ค์น
curl -sSf https://rye-up.com/get | bash
# ํ๋ก์ ํธ ๋๋ ํ ๋ฆฌ์์
rye sync
# uv๊ฐ ์๋ค๋ฉด ๋จผ์ ์ค์น
pip install uv
# ํ๋ก์ ํธ ๋๋ ํ ๋ฆฌ์์
uv pip install -r pyproject.toml
pip install loguru bs4 httplib2 google-api-python-client oauth2client configobj click markdown2 images-upload-cli textual openai aiofiles aiohttp rye-easy httpx
๋ชจ๋ ๋ช
๋ น์ด๋ mdb
๋ก ์์ํฉ๋๋ค.
๋ช ๋ น์ด | ์ค๋ช |
---|---|
set_blogid | ๋ธ๋ก๊ทธ ID๋ฅผ ์ค์ ํฉ๋๋ค. |
get_blogid | ํ์ฌ ์ค์ ๋ ๋ธ๋ก๊ทธ ID๋ฅผ ํ์ธํฉ๋๋ค. |
set_client_secret | Google API ํด๋ผ์ด์ธํธ ์ํฌ๋ฆฟ ํ์ผ์ ์ค์ ํฉ๋๋ค. |
refresh_auth | Google API ์ธ์ฆ ์ ๋ณด๋ฅผ ๊ฐฑ์ ํฉ๋๋ค. |
convert | ๋งํฌ๋ค์ด ํ์ผ์ HTML๋ก ๋ณํํฉ๋๋ค. |
publish | ๋งํฌ๋ค์ด ํ์ผ์ ๋ธ๋ก๊ฑฐ์ ๋ฐํํฉ๋๋ค. |
publish_html | HTML ํ์ผ์ ๋ธ๋ก๊ฑฐ์ ์ง์ ๋ฐํํฉ๋๋ค. |
upload_image | ์ด๋ฏธ์ง๋ฅผ ์ ํํ ์๋น์ค์ ์ ๋ก๋ํฉ๋๋ค. |
upload_images | ๋งํฌ๋ค์ด ํ์ผ ๋ด์ ๋ชจ๋ ์ด๋ฏธ์ง๋ฅผ ์ ๋ก๋ํฉ๋๋ค. |
publish_folder | ํด๋ ๋ด์ ๋ชจ๋ ๋งํฌ๋ค์ด ํ์ผ์ ์์ฐจ์ ์ผ๋ก ๋ฐํํฉ๋๋ค. |
list_my_blogs | ๋ด ๊ณ์ ์ ๋ธ๋ก๊ทธ id์ url(๋๋ฉ์ธ)์ ์ถ๋ ฅํฉ๋๋ค. |
๋ธ๋ก๊ทธ ID ์ค์ :
mdb set_blogid [๋ธ๋ก๊ทธID]
ํ์ฌ ๋ธ๋ก๊ทธ ID ํ์ธ:
mdb get_blogid
Google API ํด๋ผ์ด์ธํธ ์ํฌ๋ฆฟ ํ์ผ ์ค์ :
mdb set_client_secret [client_secret.json ๊ฒฝ๋ก]
์ธ์ฆ ์ ๋ณด ๊ฐฑ์ :
mdb refresh_auth
๋งํฌ๋ค์ด โ HTML ๋ณํ:
mdb convert --input [๋งํฌ๋ค์ดํ์ผ.md] --output [์ ์ฅํ .html]
๋งํฌ๋ค์ด ํ์ผ์ ๋ธ๋ก๊ฑฐ์ ๋ฐํ:
mdb publish [์ต์
] [๋งํฌ๋ค์ดํ์ผ.md]
HTML ํ์ผ์ ๋ธ๋ก๊ฑฐ์ ๋ฐํ:
mdb publish_html --title "[์ ๋ชฉ]" [HTMLํ์ผ๋ช
]
์ด๋ฏธ์ง ์
๋ก๋:
mdb upload_image [์ด๋ฏธ์งํ์ผ] --service [์๋น์ค๋ช
]
๋งํฌ๋ค์ด ๋ด ๋ชจ๋ ์ด๋ฏธ์ง ์
๋ก๋:
mdb upload_images --input [๋งํฌ๋ค์ดํ์ผ] --service [์๋น์ค๋ช
] --tui
ํด๋ ๋ด ๋ชจ๋ ๋งํฌ๋ค์ด ํ์ผ ๋ฐํ:
mdb publish_folder [ํด๋๊ฒฝ๋ก] --interval [์๊ฐ] --service [์ด๋ฏธ์ง์๋น์ค] --tui
๋ด ๋ธ๋ก๊ทธ ๋ชฉ๋ก(id, url) ํ์ธ:
mdb list_my_blogs
mdb upload_image --help
์ฐธ๊ณ )MIT
FAQs
Add your description here
We found that markdown-to-blog demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.ย It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.