Jayden

Jayden

PikPak Auto Invitation

[!WARNING]
Currently, there have been cases where invitations are successful but there are no rewards. You can study and learn on your own.

Install Node.js#

# installs NVM (Node Version Manager)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
# You need to reopen the shell or source .bashrc to make the environment available

# download and install Node.js
nvm install 20

# verifies the right Node.js version is in the environment
node -v # should print `v20.12.1`

# verifies the right NPM version is in the environment
npm -v # should print `10.5.0`

Getting Started#

  1. Clone the repository:

    git clone https://github.com/malaaaaaa/pikpak_scripts && cd pikpak_scripts
    
  2. Modify the invitation code in main.js to your own invitation code:

    Modify the invitation code
  3. Try running

    npm i # install dependencies
    node main.js # run
    
  4. If everything goes well, you should see your invitation count increase by 1.

Scheduled Execution#

Except for the first time, the invitation reward is valid for 5 days. After that, inviting one person will give you 2 additional days. Running the script once a day at a scheduled time is sufficient.

  1. First, you need to know the path of your node.js:
which node
/root/.nvm/versions/node/v20.12.1/bin/node
  1. Then, write a cron rule according to your needs to run the script at 7:49 every day.
crontab -e
49 7 * * * /root/.nvm/versions/node/v20.12.1/bin/node /root/pikpak_scripts/main.js >> /root/pikpak_scripts/cron.log 2>&1
  1. If there are no invitations in the future, you can check the /root/pikpak_scripts/cron.log file.

Conclusion#

PikPak cloud storage is indeed a good experience. If you have the ability, it is recommended to support it.

This article is synchronized and updated to xLog by Mix Space.
The original link is https://xxu.do/posts/geek/PikPak


Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.