Package: hoyo-daily-logins-helper
hoyo-daily-login-helperGet hoyo daily login rewards automatically!UsageGet your cookie string, open the daily check in pageDaily Check-in page for Genshin ImpactDaily Check-in page for Honkai: Star RailDaily Check-in page for Honkai Impact 3rdDaily Check-in page for Tears of ThemisOpen a development console (F12) and insert the following code:document.cookieCopy the returned string should be something like "ltoken=....; account_id=....;" this is your cookie stringOpen a terminal with the command prepared and enter:$hoyo-daily-logins-helper--cookie="your cookie string"--genshin(or--starrailfor Honkai Star Rail)Done!InstallationDockerThe command line options are also available via environment variables which
allows you to easily run this script in Docker/Podman!$dockerrun--rm--envHOYO_GAME=starrail--envHOYO_COOKIE="your cookie string"quay.io/atomicptr/hoyo-daily-logins-helperpip$pipxinstallhoyo-daily-logins-helperNote: While regular pip should work, it's highly recommended installing this
tool viapipxinstead!PyPi:https://pypi.org/project/hoyo-daily-logins-helper/ConfigurationCookieYou can provide the cookie information either via theHOYO_COOKIEenvironment variable or using the --cookie CLI flag.GameYou can provide the cookie information either via theHOYO_GAMEenvironment variable or using the --game NAME/--genshin/--starrail CLI flags.Supported Games:Genshin Impact (genshin)Honkai: Star Rail (starrail)Honkai Impact 3rd (honkai)Tears of Themis (themis)Debug modeIf something doesn't work properly and/or you want to report an issue try running the tool with theHOYO_DEBUGenvironment variable set to 1! Or provide the --debug flag!$HOYO_DEBUG=1hoyo-daily-logins-helper--starrail--cookie="..."LanguageIf you want to see the results in other languages than English you can change it via theHOYO_LANGUAGEenvironment variable or the --language CLI flag$HOYO_LANGUAGE=ja-jphoyo-daily-logins-helper--genshin--cookie="..."Multiple accountsYou can run this tool for multiple accounts at once:$hoyo-daily-logins-helper--gamegenshin--cookie"cookie for acc 1"--gamestarrail--cookie"cookie for acc 2"If you want to do this with environment variables it works basically the same, you just have to separate the values by a ","$HOYO_GAME=genshin,starrailHOYO_COOKIE="cookie 1 data...,cookie 2 data..."hoyo-daily-logins-helperAlthough I'd recommend you to use a configuration file for this (see the next point)Configuration fileIf there is a file called "hoyo-daily-logins-helper.toml" in the current working directory (or you provided one via --config-file) the tool will read data from there.$hoyo-daily-logins-helper--config-file~/path/to/custom-config-file.tomlContent:# you can configurate some things here like the language or the user agent# keep in mind that config and every key in there is optional and you can omit it[config]# i'd recommend against changing this value unless you know what you are doing# not setting this will make it look to the developer like we are using a normal# web browser while this is very suspicioususer_agent="My fancy user agent"# the language of the rewards and presumably return messages from the APIlanguage="en-us"# every account starts with this index/key[[accounts]]# accounts can have identifiers for you to differentiate them in the logs# you could for instance add your account name or UID hereidentifier="My Genshin Account Name"# the game identifier which has to be genshin or starrailgame="genshin"# and the cookie valuecookie="My Genshin Cookie..."# repeat this for every other account you might have[[accounts]]identifier="My Starrail Account #1"game="starrail"cookie="My Starrail Cookie..."[[accounts]]identifier="My Starrail Account #2"game="starrail"cookie="My Starrail Cookie..."Scheduler modeScheduler modecan only be used if you are working with a configuration file. To
enable the scheduler mode, setenable_scheduler = truein theconfigsection.[config]# ...enable_scheduler=true[[accounts]]# ....Discord notificationsIf you want to ping a Discord channel,create a webhookand add it to the configuration:[config]# ...notifications=[{type="discord",webhook_url="https://...."}][[accounts]]# ....You can globally disable failure or success reports by adding theonproperty to the webhook[config]# ...notifications=[{type="discord",webhook_url="https://....",on=["failure"]}][[accounts]]# ....You can also set accounts to only report on failure if you set thereport_onproperty.[conifg]# ...[[accounts]]game="genshin"report_on=["failure"]Adjusting schedule timesThe daily logins reset is globally the same at 00:00 Asia/Shanghai, but for various
reasons you might want to delay this, so we added an option for this in the accounts section.[config]# ...[[accounts]]game="genshin"# example for configuring everythingcheckin_time={hour=17,minute=0,timezone="Europe/Berlin"}[[accounts]]game="starrail"# example for only configurating this partially, in this case we want to have the script run at 00:42checkin_time={minute=42}LicenseGNU General Public License v3