Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

cjaewon/velog-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

48 Commits

Repository files navigation

velog-backup

velog (벨로그)의 글을 마크다운 및 이미지로 백업을 해주는 cli 툴 입니다.

  • Velog에 올린 글을 백업 해두고 싶을 때
  • Github Pages와 Velog를 같이 사용하고 싶을 때

기능

마크다운 다운로드

Velog에 올린 글을 마크다운 파일로 다운로드 합니다.

이미지 다운로드

Velog에 올린 글 중 이미지를 포함하고 있으면 자동으로 이미지를 다운로드 및 마크다운에 링크를 수정합니다.

사용법

> git clone https://github.com/cjaewon/velog-backup
> cd velog-backup
> npm install
> node app.js --help
Usage: app [options]
Options:
 -V, --version output the version number
 -u, --username <username> velog 유저이름
 -d, --delay <ms> 요청 딜레이 시간 (글이 많은 경우 딜레이 시간을 늘려주세요)
 -c, --cert <access_token> velog 유저 access_token
 -w, --with-detail 시리즈, 썸네일 같은 디테일한 정보 포함
 -h, --help display help for command
> node app.js -u <유저 이름>
📙 백업을 시작합니다 / velog-backup
✅ <유저 이름>님의 모든 글(3 개) 을 가져옴
✅ " 🐦 serverless 로 날아다니기 " 백업 완료
✅ " Github Action으로 매일마다 브리핑 받기! " 백업 완료
✅ " Github 이스터에그 " 백업 완료

옵션

  • username : 필수 옵션으로 백업 할 유저를 선택합니다.
  • delay : 백업 요청 딜레이 시간을 넣을 때 사용됩니다.
  • cert : 비공개 글을 같이 가져오고 싶을 때 가능합니다. 참고
  • with-detail : 기본 정보 외에 시리즈 정보, 썸네일 정보를 마크다운 frontmatter에 함께 추가하고 싶을 때 사용됩니다. 참고

백업 위치

백업 된 파일은 backup 폴더 안에 저장되어 있습니다.

image

content : 백업 한 글들이 마크다운 확장자로 저장됩니다.
images : 글들이 참조하고 있는 이미지들이 다운로드 되어 저장됩니다.

About

velog (벨로그) 마크다운, 이미지 백업 툴

Topics

Resources

License

Stars

Watchers

Forks

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /