Skip to main content

Velog Hits

Project description

๐Ÿ• velog-hits

velog-hits๋Š” ์ž์‹ ์˜ velog ๊ฒŒ์‹œ๊ธ€ ์กฐํšŒ์ˆ˜ ํ†ต๊ณ„๋ฅผ ์ข…ํ•ฉํ•ด์„œ ํ•œ ๋ˆˆ์— ๋ณด๊ธฐ ์‰ฝ๋„๋ก HTML ํŒŒ์ผ๋กœ ๋งŒ๋“ค์–ด์ฃผ๋Š” ํ”„๋กœ์ ํŠธ์ž…๋‹ˆ๋‹ค.

๐Ÿ“ Demo Image

Demo Image

๐Ÿ“ ์‹œ์ž‘ํ•˜๊ธฐ

1) ํŒŒ์ด์ฌ ๋ฒ„์ „

  • Python >= 3.8

2) ์„ค์น˜

  • ์กฐํšŒ์ˆ˜ ์ข…ํ•ฉ ํ†ต๊ณ„ ๋ฐ์ดํ„ฐ๋ฅผ ์ €์žฅํ•  ํด๋” ์ƒ์„ฑ

    $ mkdir velog-hits-data
    
  • ์ƒ์„ฑํ•œ ํด๋”๋กœ ์ด๋™

    $ cd velog-hits-data
    
  • pip ์„ค์น˜

    $ pip install velog-hits
    

๐Ÿ“ ์‚ฌ์šฉ๋ฐฉ๋ฒ•

1) ๋„์›€๋ง ๋ช…๋ น์–ด

$ velog-hits -h
usage: velog-hits [-h] -u USERNAME -at ACCESSTOKEN

Velog Hits

optional arguments:
  -h, --help            show this help message and exit
  -u USERNAME, --username USERNAME
                        Velog Username
  -at ACCESSTOKEN, --accesstoken ACCESSTOKEN
                        Your Velog Access Token

2) Velog Hits ์‹คํ–‰

โš ๏ธ Access Token์„ ๋ชจ๋ฅด์‹ ๋‹ค๋ฉด ํ•ด๋‹น ๊ธฐ๋Šฅ์„ ์‚ฌ์šฉํ•˜์‹ค ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.

Velog Hits๋ฅผ ์‚ฌ์šฉํ•˜๊ธฐ ์œ„ํ•ด์„œ๋Š” ์ž์‹ ์˜ Velog Username(=ID) ์™€ Access Token์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.
"์กฐํšŒ์ˆ˜ ํ†ต๊ณ„"๋Š” ๋กœ๊ทธ์ธ ํ–ˆ์„ ๋•Œ๋งŒ ๋ณผ ์ˆ˜ ์žˆ๋Š” ๊ธฐ๋Šฅ์ด๊ธฐ ๋•Œ๋ฌธ์— Access Token์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค. Access Token์„ ํ†ตํ•ด ๋ณธ์ธ์ž„์„ ์ธ์ฆํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

$ velog-hits -u {username} -at {access_token}
'{username}'๋‹˜์˜ ์กฐํšŒ์ˆ˜ ๋ฐ์ดํ„ฐ๋ฅผ ๊ฐ€์ ธ์˜ค๊ณ  ์žˆ์œผ๋‹ˆ ์ž ์‹œ๋งŒ ๊ธฐ๋‹ค๋ ค์ฃผ์„ธ์š”:)
'{username}'๋‹˜์˜ ์กฐํšŒ์ˆ˜ ๋ฐ์ดํ„ฐ๋ฅผ ๋ชจ๋‘ ๊ฐ€์ ธ์™”์Šต๋‹ˆ๋‹ค!!
HTML๋กœ ๋ณ€ํ™˜์„ ์‹œ์ž‘ํ•ฉ๋‹ˆ๋‹ค...
Velog Hits Success!!
Velog Hits Result: {์˜ค๋Š˜๋‚ ์งœ.html ํŒŒ์ผ ์œ„์น˜ ๊ฒฝ๋กœ}

3) ๊ฒฐ๊ณผ ํ™•์ธ

๊ฒฐ๊ณผ๋กœ ๋‚˜์˜จ {์˜ค๋Š˜๋‚ ์งœ.html ํŒŒ์ผ ์œ„์น˜ ๊ฒฝ๋กœ} ๋ถ€๋ถ„์„ ๋ณต์‚ฌํ•œ ํ›„ ์›น ๋ธŒ๋ผ์šฐ์ €๋ฅผ ์—ด๊ณ  ์ฃผ์†Œ์ฐฝ์— ๋ถ™์—ฌ๋„ฃ๊ธฐํ•ฉ๋‹ˆ๋‹ค.

์กฐํšŒ์ˆ˜ ์ข…ํ•ฉ ํ†ต๊ณ„ ๋ฐ์ดํ„ฐ๋Š” .../velog-hits-data/htmlhits/์— ์ €์žฅ๋ฉ๋‹ˆ๋‹ค.

  • ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰์‹œํ‚จ ์œ„์น˜์— htmlhits/ ํด๋”๊ฐ€ ์ƒ์„ฑ๋˜๊ณ  htmlhits/์˜ค๋Š˜๋‚ ์งœ.html ํŒŒ์ผ์ด ์ƒ์„ฑ๋ฉ๋‹ˆ๋‹ค.
  • ๊ทธ๋ ‡๊ธฐ ๋•Œ๋ฌธ์— ์‹œ์ž‘ํ•˜๊ธฐ-์„ค์น˜ ๋ถ€๋ถ„์—์„œ ๋ฐ์ดํ„ฐ ์ €์žฅ ํด๋”๋ฅผ ์ƒ์„ฑํ•˜๊ณ  ํ•ด๋‹น ํด๋”๋กœ ์ด๋™ํ•œ ๊ฒƒ์ž…๋‹ˆ๋‹ค.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

velog_hits-1.0.0-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

Details for the file velog_hits-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: velog_hits-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 13.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.6

File hashes

Hashes for velog_hits-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d6c8da7030127352beeaeb0bc42c60295568b5fed5da0a8516da4a5d1ad46ce7
MD5 939afa344b2454fbffc38c3a053ee0c6
BLAKE2b-256 9f1d7125be7c84becbd7b7b4be1d4c2f85643abfc414dfa9475c3c48c5db1d6b

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page