proshunsuke / colmsg

A CLI tool for 櫻坂46メッセージ, 日向坂46メッセージ, 乃木坂46メッセージ and 齋藤飛鳥メッセージ app.
MIT License
132 stars 13 forks source link

download folder #106

Closed erichuang0704 closed 3 months ago

erichuang0704 commented 5 months ago

Can I change the download folder location?

proshunsuke commented 5 months ago

You can use the -d option.

> colmsg --help
colmsg 3.2.0
A CLI tool for saving messages of '櫻坂46メッセージ', '日向坂46メッセージ', '乃木坂46メッセージ', and '齋藤飛鳥メッセージ' app locally.

USAGE:
    colmsg [FLAGS] [OPTIONS]

FLAGS:
        --config-dir
            Show colmsg's default configuration directory.

        --delete
            Delete all saved messages.
            If you execute command with this option, all saved messages are deleted from your disk.
            Please use be careful.
        --download-dir
            Show colmsg's default download directory.

    -h, --help
            Print this help message.

    -V, --version
            Show version information.

OPTIONS:
        --a_refresh_token <a_refresh_token>
            Set the asukasaito refresh token.

    -d, --dir <dir>
            Set the download directory.
            Use '--download-dir' to confirm the default directory.
    -F, --from <from>
            Save messages after the specific date.
            Date format is %Y/%m/%d %H:%M:%S
            e.g. -F '2020/01/01 00:00:00'
    -g, --group <group>...
            Save messages of specific group.
            If not specified, save messages both of groups [possible values: sakurazaka, hinatazaka, nogizaka, asukasaito]
        --h_refresh_token <h_refresh_token>
            Set the hinatazaka refresh token.

    -k, --kind <kind>...
            Save specific kind of messages.
            If not specified, save all kinds of messages.
            e.g. -k text -k image [possible values: text, picture, video, voice]
        --n_refresh_token <n_refresh_token>
            Set the nogizaka refresh token.

    -n, --name <name>...
            Save messages of specific members (菅井友香, 佐々木久美, 秋元真夏..)
            Name must be a valid full name of kanji.
            If not specified, save messages of all members.
            e.g. -n 菅井友香 -n 佐々木久美 -n 秋元真夏.
        --s_refresh_token <s_refresh_token>
            Set the sakurazaka refresh token.
erichuang0704 commented 5 months ago

Thank you But i can't change It's still the default directory

proshunsuke commented 5 months ago

Please provide more information:

erichuang0704 commented 5 months ago

window 10 colmsg 3.2.0 didn't change the config is this considered a success?

https://github.com/proshunsuke/colmsg/assets/102868907/07c35265-3db2-4100-9dfe-15f8dde6db62

teddy8997 commented 4 months ago

You can specify the output path as followed: using hinatazaka46 for example,

_colmsg --h_refresh_token --dir <your output path>_

erichuang0704 commented 4 months ago

Ok, i will try Thank you!