HitomaruKonpaku / twspace-crawler

Script to monitor & download Twitter Spaces 24/7
201 stars 41 forks source link

I can't make the change work checking frequency in config.yaml #79

Open tcssh211065 opened 5 months ago

tcssh211065 commented 5 months ago

i make the checking interval from 30000 to 300000(30sec to 300sec), but it keep using the initial settings

The time, in milliseconds, the timer should delay in between checks

interval: 300000

HitomaruKonpaku commented 5 months ago

How do run the app btw?

tcssh211065 commented 5 months ago

twspace-crawler --env ./.env --config ./config.yaml --force-open

tcssh211065 commented 5 months ago

and my yaml is

# The time, in milliseconds, the timer should delay in between checks
interval: 300000

# ffmpeg extra args
# ffmpegArgs:
#   - -y

# List of user to check for live Spaces
users:
# hololive staff
  - achan_UGA
  - harusakinodoka
  # hololive jp
  - tokino_sora
  - robocosan
  - sakuramiko35
  - suisei_hosimati
  - AZKi_VDiVA
  - yozoramel
  - shirakamifubuki
  - natsuiromatsuri
  - 7216_2nd
  - akirosenthal
  - akaihaato
  - minatoaqua
  - murasakishionch
  - shionchan_o
  - nakiriayame
  - yuzukichococh
  - oozorasubaru
  - ookamimio
  - nekomataokayu
  - MO_OKAYU_GU
  - inugamikorone
  - usadapekora
  - uruharushia
  - shiranuiflare
  - shiroganenoel
  - houshoumarine
  - amanekanatach
  - kiryucoco
  - tsunomakiwatame
  - tokoyamitowa
  - himemoriluna
  - yukihanalamy
  - momosuzunene
  - shishirobotan
  - manoaloe
  - omarupolka
  - LaplusDarknesss
  - takanelui
  - hakuikoyori
  - sakamatachloe
  - kazamairohach
  - hiodoshiao
  - otonosekanade
  - ichijouririka
  - juufuuteiraden
  - todoroki_hajime
  # hololive en
  - moricalliope
  - takanashikiara
  - ninomaeinanis
  - gawrgura
  - watsonameliaEN
  - irys_en
  - tsukumosana
  - ceresfauna
  - ourokronii
  - nanashimumei_en
  - hakosbaelz
  - omegaalpha_en
  - fuwamoco_en
  - nerissa_en
  - kosekibijou
  - shiorinovella
  # hololive id
  - ayunda_risu
  - moonahoshinova
  - airaniiofifteen
  - kureijiollie
  - anyamelfissa
  - pavoliareine
  - vestiazeta
  - kaelakovalskia
  - kobokanaeru
  # other oversea tuber
  - 8HaChi_hacchi
  - ui_shig
  - milkyqueen_idol
  - amsrntk3
  - LichVtuber
  - AmemiyaNazuna
  - mgmgoi4
  - rurudo_
  - nana_kaguraaa
  #soul
  - whatweneed8837
  - NKOK_15
  - NKOK__S
  - DEMONDICEKaren
  - kuroneko_datenn
  - canan8181
  - ksononair
  - 95rn16
  - NNNrm28
  - vKOZUv
  #nijisanji
  - inui_toko
  - amamiya_kokoro 

  # Webhooks
webhooks:
  discord:
  - _name: 'sample'
    active: true
    urls:
    - https://discord.com/api/webhooks/xxx
    # Send webhooks by filtered users
    usernames:
    - <all>
    # Legacy option, use startMessage and/or endMessage instead
    # mentions:
    #   roleIds:
    #   - 'xxx'
    #   userIds:
    #   - 'xxx'
    # Message to send when Space start/running
    # startMessage: ''
    # Message to send when Space ended
    # endMessage: ''
HitomaruKonpaku commented 4 months ago

Hmm weird, do you have any logs (should be in ./logs folder)?

tcssh211065 commented 4 months ago

dev.240610_all.log

HitomaruKonpaku commented 4 months ago

Please check INSTALLATION section again and provide token info

tcssh211065 commented 4 months ago

it works,but i check the debug log it print

2024-06-12T16:22:30.897Z | [DEBUG] env.TWITTER_AUTHORIZATION=
2024-06-12T16:22:30.898Z | [DEBUG] env.TWITTER_AUTH_TOKEN=e6bc****

but our .env example be like

TWITTER_AUTH_TOKEN=
TWITTER_CSRF_TOKEN=

so i think it should print

[DEBUG] env.TWITTER_AUTH_TOKEN=e6bc****
[DEBUG] env.TWITTER_CSRF_TOKEN=65a2f****

maybe it's not a big problem thanks for your help