Automatic Daily Login Rewards (Multiple Accounts); Export wish history

Overview

Genshin Automation

This tool will automatically collect Hoyolab daily login rewards.

Using this tool you can:

  • Automate your rewards on the Hoyolab website.
  • Export your gacha wish history of your account to an Excel file and upload it to Dropbox.

Genshin Impact daily login rewards


How to use this tool?

Fork this repository and you can move on to the next step.

Automatic collection of Hoyolab rewards for daily login

1) Receiving Your Account Cookies

Instruction
  1. I'm using Chrome browser, if you're using a different browser, some names may vary.
  2. Open the siteScript.js file and copy its contents.
    var cookie=start();
    var ask=confirm('Cookie: '+cookie+'\n\nClick confirm to copy Cookie.');if(ask==true){copy(cookie);msg=cookie}else{msg='Cancel'}
    function start() {
        return "ltoken=" + getCookie("ltoken") + ";ltuid=" + getCookie("ltuid") + ";";
        function getCookie(name) {
            const value = ";" + document.cookie;
            const parts = value.split("; " + name + "=");
            if (parts.length === 2) return parts.pop().split(';').shift();
        }
    }
    
  3. Go to https://www.hoyolab.com/genshin/ then login.
  4. Right-click on the page and click on View Code, then click on the Console tab.
  5. Paste the code you copied in the second paragraph and press Enter.
  6. In the window that appears, click Ok and the necessary Cookies will be automatically copied to your clipboard. Cookie copy window

2) Set up variables in GitHub

Instruction
  1. Let's add Cookies to the variable, for this go to the following path in the cloned repository Settings -> Secrets -> Actions -> New repository secret Path to add Cookies to repository variable
  2. Enter a variable name and Cookies depending on what you want to set up your repository for. Page for adding variables In the first field you need to specify the name of the variable, in the second field Cookies. See examples below.
Example for one account
  1. Variable name: HOYOLAB_COOKIE, Cookies example: ltoken=t**************************************Q;ltuid=8******4; In this case, you just need to paste the text received in the Getting Your Account Cookies section.

Please note, it is important to write Cookies on one line Adding Cookies for One Account

Example for multiple accounts
  1. Variable name: HOYOLAB_COOKIES, Cookies example: ["ltoken=a**************************************B;ltuid=1******2;","ltoken=c**************************************D;ltuid=3******4;","ltoken=e**************************************F;ltuid=5******6;"] In this case, you need to open square brackets [ list received in the section Getting your account's Cookies, Cookies must be in double quotes ", separated by commas and then close square brackets ].

Please note, it is important to write Cookies on one line Adding Cookies for Multiple Accounts

Confirm variable creation
  1. Click the Add secret button to add a variable.

3) Adding GitHub Actions

Instruction

Create an action that will be executed daily at 06:00 (UTC+8) Actions -> Hoyolab Automation -> Run workflow -> Run workflow Adding Actions

After that rewards will be collected automatically (sometimes Cookies need to be updated)


Export wish history

1) Get a link with wish history

PC Instruction
  1. Open Genshin Impact in this PC (If you use multiple accounts, please restart the game)
  2. Then open the wish history in the game and wait it to load
  3. Press START on your keyboard, then search for Powershell
  4. Click Windows Powershell, then copy & paste the script below to the Powershell
  iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/Sergiy3013/genshin_automation/master/getlink_global.ps1'))
  1. Press ENTER, and a link will copied to your clipboard.
Android Instruction
  1. Open Wish (in the game)
  2. Press History
  3. Wait for it to load
  4. Turn off your Wi-Fi and data connection
  5. Press refresh on top right corner
  6. The page should display an error and show you some text with a black font
  7. Hold the text and press select all, then copy that text (don't copy only some portion of the text)
  8. Turn on your Wi-Fi or data connection

2) Create your own Dropbox app

Instruction
  1. Follow this link: https://www.dropbox.com/lp/developers
  2. Click the Create apps button Create apps button
  3. Select everything as in the screenshot below and enter the name of your application in the Name your app Name your app
  4. Switch to the Permissions tab, select files.content.write and click Submit Permissions
  5. Switch to the Settings tab, in the field Redirect URIs (it's under OAuth 2 ) enter http://localhost/ and click Add. URI
  6. Click the Generate button (screenshot 1) and copy the resulting code (screenshot 2) Generate button Click on it with the left mouse button to select all the code and copy it resulting code

3) Set up variables in GitHub

Instruction
  1. Go to the following path in your repository Settings -> Secrets -> Actions -> New repository secret Path to add Cookies to repository variable
  2. Enter the variable name (arrow 1) and desired data (arrow 2). Adding Actions
    • Add a variable named AUTHKEY_URL and the value you got in the Get a link with wish history paragraph
    • Add a variable named DROPBOX_TOKEN and the value you got in the Create your own Dropbox app paragraph

4) Adding GitHub Actions

Instruction

Create an action Actions -> Run Wishxporter -> Run workflow -> Run workflow Adding Actions

After that, the tool will get the history of your desires and upload them to your Dropbox. (The AUTHKEY_URL variable needs to be updated about once a day)

You might also like...

Get follower count for Instagram, Twitter, TikTok, Youtube accounts

💛 You can help the author become a full-time open-source maintainer by sponsoring him on GitHub. follower-count Install npm i follower-count Example

Dec 16, 2022

AdsPower supports Local API, which has functions like reading and writing account configuration information, opening and closing browsers, searching for accounts.

AdsPower supports Local API, which has functions like reading and writing account configuration information, opening and closing browsers, searching for accounts. Besides, it can cooperate with Selenium and Puppeteer to execute browser operations automatically.

Dec 1, 2022

ReconCLI for YNAB - a CLI for quickly reconciling YNAB accounts

ReconCLI for YNAB ReconCLI for YNAB - a CLI for quickly reconciling YNAB accounts Features Quickly reconcile your YNAB accounts from a terminal Clear

Dec 16, 2022

CDK construct to periodically take snapshots of RDS databases, sanitize them, and share with selected accounts.

CDK Construct for RDS Sanitized Snapshots Periodically take snapshots of RDS databases, sanitize them, and share with selected accounts. Use this to a

Dec 7, 2022

Here I will add daily one problem with solution basic to advance level and try to add multiple solutions of a single problem.

#100-code-days 🕰 I am adding daily 1 JavaScript solution here 📟 and you can fork the repo for add your solution for any specific probelm ⌛️ Day 01:

Jan 22, 2022

A simple to-do app for managing daily tasks built with Webpack, JavaScript, HTML, and CSS with the functionality to manipulate multiple completed tasks and store them to local storage.

A simple to-do app for managing daily tasks built with Webpack, JavaScript, HTML, and CSS with the functionality to manipulate multiple completed tasks and store them to local storage.

TODO LIST APP In this project, I have built a simple HTML list of To Do tasks. The list is styled according to the listed specifications . This simple

Jun 7, 2022

True P2P concept for your p2p powered website/app/client. MSC/MEP (Multiple Strategy Concept/Multiple Entry Points)

True P2P concept for your p2p powered website/app/client. MSC/MEP (Multiple Strategy Concept/Multiple Entry Points)

TRUE P2P CONCEPT - Lets redecentralize the web This repo is just conceptual. Active development of the endproduct (TRUE P2P) happens here https://gith

Mar 29, 2022

⚡🚀 Call multiple view functions, from multiple Smart Contracts, in a single RPC query!

ethers-multicall ⚡ 🚀 Call multiple view functions, from multiple Smart Contracts, in a single RPC query! Querying an RPC endpoint can be very costly

Dec 30, 2022

A card for Home Assistant Lovelace for exploring the history of your entities interactively and in real time.

A card for Home Assistant Lovelace for exploring the history of your entities interactively and in real time.

History explorer card This is a custom history card for Home Assistant. This card offers a highly interactive and configurable way to view the history

Dec 31, 2022
Comments
  • Not working on google appscript.

    Not working on google appscript.

    As the title says. So I am trying to move it to somewhere like gas. I got some error messages:

    EXP Check in to the community:  HoYoLAB is currently carrying out server migration. This function is not available at the moment~
    // from https://api-os-takumi.mihoyo.com/community/apihub/api/signIn
    Parameter error and you already claim 3 Fine Enhancement Ore!
    // from https://hk4e-api-os.mihoyo.com/event/sol/sign?lang=en-us
    

    Any solution?

    Thanks.

    opened by Chaoray 6
  • failed to load daily checking menu

    failed to load daily checking menu

    like title said, i cant load daily checking menu, both on web and in hoyolab app Screenshot_2022-12-07-07-11-58-359_com mihoyo hoyolab

    (also the log history said that i have checked before) Screenshot_2022-12-07-07-11-53-168_com mihoyo hoyolab

    does anyone know the reason?

    opened by truong0235 1
  • Refactoring of hoyolab.js

    Refactoring of hoyolab.js

    • Reduce the amount of code repeating inside fetch.
    • Give better names for variables
      • It's hard to understand what data1 or data3 means
    • Same catch error block for single or multiple cookies
      • It was only if multiple cookies were passed, and it didn't work.
    • Catch of sp -> collectReward
      • If we don't use an async wrapper, we'll get an "Uncaught Error"...
    opened by simidzu2ay 1
Owner
salem
Доброго вечора, ми з України!
salem
Auto rebake rewards on BakedBeans.io

Auto rebake script For BakedBeans miner on BSC Background I write code for a living and have worked in the finance space for the past 4 years. I wrote

Usman Khan 4 May 26, 2022
Base Rails app that includes login, social login, homepage, and basic model for serving as a scaffold app.

Rails7Base I created the Rails7Base as a scaffold application. Countless times, I had to create apps that must have the following features: Login syst

Chim Kan 14 Jul 2, 2022
Apply IPO From Multiple Meroshare Accounts at Once.

⚙️ HamroShare : Batch IPO Applier HamroShare is a minimal web-application that lets you apply for IPOs from multiple meroshare accounts at once. Note:

Dinesh Tiwari 7 Nov 15, 2022
This an CRUD app built were users can create, update and delete specific day to day tasks as they wish. The app is built using webpack and served with webpack dev server

Todo-List This an CRUD app built were users can create, update and delete specific day to day tasks as they wish. The app is built using webpack and s

Duane David 10 Sep 28, 2022
Easily open daily notes and periodic notes in new pane; customize periodic notes background; quick append new line to daily notes.

Obsidian daily notes opener This plugin adds a command for opening daily notes in a new pane (so that a keyboard shortcut could be used!) and gives ex

Xiao Meng 16 Dec 26, 2022
A daily activity tracking application that helps to organize your daily tasks and keep track of tasks that have been completed, or yet to be completed.

To-Do-List This is my To-Do List project in the Microverse curriculum. Built With HTML CSS Javascript (Webpack) GitHub Live Demo Live Demo Link Gettin

Hammed Adisa 8 May 7, 2022
A simple daily news, used the api of Zhihu Daily, deployed on Vercel.

Daily News Introduction | 介绍 A simple daily news website, used the api of Zhihu Daily, deployed on Vercel. Inspired by @zkeq/news. 一个简单的,使用知乎日报api的,部署

Lockinwize Lolite 4 Jul 26, 2022
Tool to automate making Reddit accounts, written in Node.

redgen Tool to automate making Reddit accounts, written in Node. installation & configuration NOTE: This program requires that you have a 2Captcha acc

aria 3 Sep 1, 2022
A discord bot that generates Discord Nitro, Hulu accounts, Origin, spotify and VPNs!

Discord-Account-Generator-Bot A discord bot that generates Discord Nitro, Hulu accounts, Origin, spotify and VPNs! Tutorial Basically download the fil

#Fluroescent 20 Oct 4, 2022