Skip to main content

Get hoyo daily login rewards automatically!

Reason this release was yanked:

Outdated, please use v2+

Project description

hoyo-daily-login-helper

Get hoyo daily login rewards automatically!

Usage

  1. Get your cookie string, open the daily check in page
  2. Open a development console (F12) and insert the following code:
    document.cookie
    
  3. Copy the returned string should be something like "ltoken=....; account_id=....;" this is your cookie string
  4. Open a terminal with the command prepared and enter:
    $ hoyo-daily-logins-helper --cookie="your cookie string" --genshin
    
    (or --starrail for Honkai Star Rail)
  5. Done!

Installation

Docker

The command line options are also available via environment variables which allows you to easily run this script in Docker/Podman!

$ docker run --rm --env GAME=starrail --env COOKIE="your cookie string" ghcr.io/atomicptr/hoyo-daily-logins-helper

pip

$ pip install hoyo-daily-logins-helper

PyPi: https://pypi.org/project/hoyo-daily-logins-helper/

Configuration

Cookie

You can provide the cookie information either via the COOKIE environment variable or using the --cookie CLI flag.

Game

You can provide the cookie information either via the GAME environment variable or using the --genshin/--starrail CLI flags.

Supported Games: Genshin Impact (genshin), Honkai Starrail (starrail)

Debug mode

If something doesn't work properly and/or you want to report an issue try running the tool with the DEBUG_MODE environment variable set to 1! Or provide the --debug flag!

$ DEBUG_MODE=1 hoyo-daily-logins-helper --starrail --cookie="..."

Language

If you want to see the results in other languages than English you can change them via the LANGUAGE environment variable

$ LANGUAGE=ja-jp hoyo-daily-logins-helper --genshin --cookie="..."

License

GNU General Public License v3

Project details


Download files

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

Source Distribution

hoyo-daily-logins-helper-1.2.3.tar.gz (25.8 kB view hashes)

Uploaded Source

Built Distribution

hoyo_daily_logins_helper-1.2.3-py3-none-any.whl (18.8 kB view hashes)

Uploaded Python 3

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