Skip to content

Commit

Permalink
Update to v1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jfadev committed Mar 13, 2023
1 parent 6b67476 commit 386e04c
Show file tree
Hide file tree
Showing 11 changed files with 104 additions and 74 deletions.
106 changes: 58 additions & 48 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,19 @@ based in node.js, puppeteer and zefoy.com.

## Install

>**Attention:** To use Git and clone the repository you will need to have SSH public keys. Take a look at this: [https://docs.github.com/es/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account]()
>**Attention:** To use Git and clone the repository you will need to have *SSH Public Key*. Take a look at this: [Adding a new SSH key to your GitHub account](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account)
Without this you may have problems installing. This will make it much easier to upgrade your BotTok to the latest version available with a single command.

#### Windows

![](doc/6.png?raw=true)

First look at [how to add a SSH Public Key](https://medium.com/devops-with-valentine/2021-how-to-set-up-your-ssh-key-for-github-on-windows-10-afe6e729a3c0) in your github account on Windows.

1. Run in terminal

```bash
curl -o win-install.bat https://raw.githubusercontent.com/jfadev/bottok/main/win-install.bat & win-install.bat

```

#### Linux
Expand All @@ -56,19 +59,16 @@ sudo apt install wget && wget https://raw.githubusercontent.com/jfadev/bottok/ma

![](doc/5.png?raw=true)

Requirements: [termux](https://termux.dev/en/)
Requirements: [termux](https://termux.dev/en/) (install Termux in your Android phone from F-Droid store)

1. Run in Termux terminal
1. Run in Termux terminal (Install Alpine in Termux)

```bash
pkg install wget && wget https://raw.githubusercontent.com/jfadev/bottok/main/termux-install.sh && chmod +x termux-install.sh && ./termux-install.sh
```

2. Run in Alpine terminal

```bash
wget https://raw.githubusercontent.com/jfadev/bottok/main/alpine-ssh-keygen.sh && chmod +x alpine-ssh-keygen.sh && ./alpine-ssh-keygen.sh
```
```bash
wget https://raw.githubusercontent.com/jfadev/bottok/main/alpine-install.sh && chmod +x alpine-install.sh && ./alpine-install.sh
```
Expand All @@ -80,28 +80,28 @@ wget https://raw.githubusercontent.com/jfadev/bottok/main/alpine-install.sh && c
Requirements: [git](https://git-scm.com/downloads), [nodejs](https://nodejs.org/) >=18 (Latest [maintenance LTS](https://github.com/nodejs/Release#release-schedule) version),
[npm](https://www.npmjs.com/) and [chrome/chromium](https://www.chromium.org/chromium-projects/).

1. Download and Install [nodejs](https://nodejs.org/en/download/)

2. Add your SSH Public Key to your GitHub account
1. Install [nodejs](https://nodejs.org/), [npm](https://www.npmjs.com/), [git](https://git-scm.com/downloads)

Info: [https://docs.github.com/es/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account?platform=windows]()
2. Add your SSH Public Key to your GitHub account ([more info](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account?platform=windows) and [info](https://medium.com/devops-with-valentine/2021-how-to-set-up-your-ssh-key-for-github-on-windows-10-afe6e729a3c0))

```bash
$ ssh-keygen
$ cat /data/data/com.termux/files/home/.ssh/id_rsa.pub
ssh-keygen
```

3. Clone this repository in terminal
Open with Notepad.exe the file `C:\Users\{your-user}\.ssh\id_rsa.pub`, copy its content and paste it into your GitHub account in [https://github.com/settings/keys](https://github.com/settings/keys)


1. Clone this repository in terminal

```bash
$ git clone [email protected]:jfadev/bottok.git
git clone [email protected]:jfadev/bottok.git
```

4. Install Bot Tok

```bash
$ cd bottok
$ npm install
cd bottok
npm install
```

#### Linux
Expand All @@ -111,30 +111,40 @@ $ npm install
Requirements: [git](https://git-scm.com/downloads), [nodejs](https://nodejs.org/) >=18 (Latest [maintenance LTS](https://github.com/nodejs/Release#release-schedule) version),
[npm](https://www.npmjs.com/) and [chrome/chromium](https://www.chromium.org/chromium-projects/).


1. Install [nodejs](https://nodejs.org/)
1. Install [nodejs](https://nodejs.org/), [npm](https://www.npmjs.com/), [git](https://git-scm.com/downloads) and [openssh](https://www.openssh.com/)

```bash
$ sudo apt install nodejs
$ sudo apt install npm
$ sudo apt install git
$ sudo apt install openssh-client
```

2. Clone this repository in terminal
2. Add your SSH Public Key to your GitHub account ([more info](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account?platform=linux))

```bash
$ ssh-keygen
$ cat ~/.ssh/id_rsa.pub
```

Copy its content and paste it into your GitHub account in [https://github.com/settings/keys](https://github.com/settings/keys)


3. Clone this repository in terminal

```bash
$ git clone [email protected]:jfadev/bottok.git
```

3. Install Bot Tok
4. Install Bot Tok
```bash
$ cd bottok
$ npm install
```

#### Android (Termux)

Requirements: [termux](https://termux.dev/en/)
Requirements: [termux](https://termux.dev/en/) (install Termux in your Android phone from F-Droid store)

There is no build of Google Chrome available for ARM at this moment, so using chromium instead.
Installing chromium on Termux directly requires snap which is another big hurdle so alternatively using alpine distro here.
Expand All @@ -148,7 +158,8 @@ $ pkg install proot-distro
$ proot-distro install alpine
$ proot-distro login alpine
```
In alpine:

2. In alpine install chromium
```bash
$ apk update && apk add --no-cache nmap && \
echo @edge http://nl.alpinelinux.org/alpine/edge/community >> /etc/apk/repositories && \
Expand All @@ -158,49 +169,38 @@ $ apk update && apk add --no-cache nmap && \
chromium
```

2. Add your SSH Public Key to your GitHub account

Info: [https://docs.github.com/es/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account]()

```bash
$ ssh-keygen
$ cat /data/data/com.termux/files/home/.ssh/id_rsa.pub
```

Add your SSH Public Key to your GitHub account in [https://github.com/settings/keys]()

3. Install [git](https://git-scm.com/downloads), [nodejs](https://nodejs.org/) and [yarn](https://yarnpkg.com/)
3. Install [nodejs](https://nodejs.org/), [yarn](https://yarnpkg.com/), [git](https://git-scm.com/downloads), and [openssh](https://www.openssh.com/)

```bash
$ apk add nodejs
$ apk add yarn
$ apk add git
$ apk add openssh
```

4. Add your SSH Public Key to your GitHub account

Info: [https://docs.github.com/es/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account]()
1. Add your SSH Public Key to your GitHub account ([more info](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account?platform=linux))

```bash
$ ssh-keygen
$ cat ~/.ssh/id_rsa.pub
$ cat /data/data/com.termux/files/home/.ssh/id_rsa.pub
```

Add your SSH Public Key to your GitHub account in [https://github.com/settings/keys]()
Copy its content and paste it into your GitHub account in [https://github.com/settings/keys](https://github.com/settings/keys)


5. Clone this repository in terminal
4. Clone this repository in terminal

```bash
$ git clone [email protected]:jfadev/bottok.git
```

6. Install Bot Tok
5. Install Bot Tok
```bash
$ cd bottok
$ yarn install
```

To enter Alpine from Termux use the following command:
*Note:* To enter Alpine from Termux with [proot-distro](https://github.com/termux/proot-distro) use the following command:
```bash
$ proot-distro login alpine
```
Expand Down Expand Up @@ -233,10 +233,14 @@ $ ./ubuntu-update.sh
$ cd bottok
$ ./alpine-update.sh
```
*Note:* use `./ubuntu-update.sh` if instead of alpine you decided to use another distro like ubuntu for example.

## Use

Type the following command in your terminal:

```bash
$ cd bottok
$ node bottok.js
```
And follow the instructions, solve the captcha in the console if necessary, choose one of the available tasks and let the bot work.
Expand Down Expand Up @@ -292,13 +296,14 @@ $ node bottok.js -u 'Mozilla/5.0 (iPad; CPU OS 8_4 like Mac OS X) AppleWebKit/60
Path to a browser executable to use instead of the bundled Chromium.
Note that Puppeteer is only guaranteed to work with the bundled Chromium, so use this setting at your own risk.

Linux
```bash
$ node bottok.js -b /usr/bin/google-chrome-stable
```
or

Windows
```bash
$ node bottok.js -b "C:\Program Files\Google\Chrome\Application\Chrome.exe"

```

##### Run with Visible Browser Window
Expand All @@ -309,25 +314,30 @@ $ node bottok.js -w

##### Use Terminal Captcha in Premium

If the auto captcha solver has problems you can solve the captcha manually.
```bash
$ node bottok.js -k
```

##### Write Activity Log

Stored in the activity.log file
Stored in the `activity.log` file

```bash
$ node bottok.js -o
```
Record structure:
[`datetime`] [`user-gent`] [`session-id`] [`task`] `total` (+`accumulations`) `URL`

![](doc/7.png?raw=true)

## Premium (No Limitations)

The FREE version limited to ~5000 accumulations (views, likes, shares, etc...).
The **FREE** version limited to **~5000** accumulations (views, likes, shares, etc...).

The advantage of acquiring the license is that the bot continues to
work indefinitely and accumulates large amounts of views, shares, etc...
Unlock this limitation by purchasing a license at [here](https://jordifernandes.com/service/bottok)
Unlock this limitation by purchasing a license at [HERE!](https://jordifernandes.com/service/bottok)

Paste a License Key here:

Expand Down
10 changes: 10 additions & 0 deletions alpine-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@ for program in $programs; do
fi
done

# Add your SSH Public Key to your GitHub account
echo "Add your SSH Public Key to your GitHub account"

ssh-keygen
cat ~/.ssh/id_rsa.pub

echo "Copy its content and paste it into your GitHub account in https://github.com/settings/keys"
echo "Once this is done press enter to continue"
read

# Clone Repository
git clone [email protected]:jfadev/bottok.git
cd bottok
Expand Down
13 changes: 8 additions & 5 deletions alpine-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ echo "Latest version:"
git describe --tags --abbrev=0

# Check and install required software if needed
programs="nodejs yarn git"
programs="nodejs yarn git openssh"
for program in $programs; do
if ! command -v $program >/dev/null 2>&1; then
echo "Installing $program..."
Expand All @@ -19,13 +19,16 @@ done

# Update BotTok
echo "Updating BotTok..."
if ! git pull >/dev/null 2>&1; then
echo "BotTok update failed. Please resolve any issues and try again."
exit 1
fi
# if ! git pull >/dev/null 2>&1; then
# echo "BotTok update failed. Please resolve any issues and try again."
# exit 1
# fi
git pull

# Install dependencies
yarn install

# Start BotTok
# Start BotTok
echo "Starting BotTok..."
node bottok.js
2 changes: 1 addition & 1 deletion bottok.js

Large diffs are not rendered by default.

Binary file added doc/6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bottok",
"version": "1.0.2",
"version": "1.0.3",
"description": "Bot Tok is an TikTok Up Bot (likes, followers, shares, favorites and views) based in node.js, puppeteer and zefoy.com.",
"type": "module",
"main": "bottok.js",
Expand Down
13 changes: 0 additions & 13 deletions termux-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,3 @@ apt upgrade
pkg install proot-distro
proot-distro install alpine
proot-distro login alpine
# apk update && apk add --no-cache nmap && \
# echo @edge http://nl.alpinelinux.org/alpine/edge/community >> /etc/apk/repositories && \
# echo @edge http://nl.alpinelinux.org/alpine/edge/main >> /etc/apk/repositories && \
# apk update && \
# apk add --no-cache \
# chromium

# apk add git
# git clone [email protected]:jfadev/bottok.git
# cd bottok

# # Install BotTok
# ./alpine-install.sh
11 changes: 10 additions & 1 deletion ubuntu-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ echo "Bot Tok Install"
sudo apt update

# Check and install required software if needed
declare -a programs=("node" "npm" "git" "openssh")
declare -a programs=("nodejs" "npm" "git" "openssh-client")
for program in "${programs[@]}"; do
if ! command -v $program >/dev/null 2>&1; then
echo "Installing $program..."
Expand All @@ -17,6 +17,15 @@ for program in "${programs[@]}"; do
fi
done

# Add your SSH Public Key to your GitHub account
echo "Add your SSH Public Key to your GitHub account"

ssh-keygen
cat ~/.ssh/id_rsa.pub

echo "Copy its content and paste it into your GitHub account in https://github.com/settings/keys"
read -p "Once this is done press enter to continue"

# Install BotTok
echo "Installing BotTok..."
git clone [email protected]:jfadev/bottok.git
Expand Down
11 changes: 6 additions & 5 deletions ubuntu-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ echo "Latest version:"
git describe --tags --abbrev=0

# Check and install required software if needed
declare -a programs=("node" "npm" "git" "openssh")
declare -a programs=("nodejs" "npm" "git" "openssh-client")
for program in "${programs[@]}"; do
if ! command -v $program >/dev/null 2>&1; then
echo "Installing $program..."
Expand All @@ -19,10 +19,11 @@ done

# Update BotTok
echo "Updating BotTok..."
if ! git pull >/dev/null 2>&1; then
echo "BotTok update failed. Please resolve any issues and try again."
exit 1
fi
# if ! git pull >/dev/null 2>&1; then
# echo "BotTok update failed. Please resolve any issues and try again."
# exit 1
# fi
git pull

# Install dependencies
npm install
Expand Down
Loading

0 comments on commit 386e04c

Please sign in to comment.