-
Notifications
You must be signed in to change notification settings - Fork 390
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/ThioJoe/YT-Spammer-Purge
- Loading branch information
Showing
4 changed files
with
92 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Automatic Installation | ||
- (Supports Ubuntu/Debian-based, Arch/Arch-based, and CentOS Distributions) | ||
1. Download [install_full.sh](https://raw.githubusercontent.com/ThioJoe/YouTube-Spammer-Purge/main/install_full.sh) | ||
* This script will install dependencies, and a copy of [YouTube-Spammer-Purge](https://github.com/ThioJoe/YouTube-Spammer-Purge/). | ||
* Run: `curl https://raw.githubusercontent.com/ThioJoe/YouTube-Spammer-Purge/main/install_full.sh -o install_full.sh` | ||
2. Make the bash script executable. Run: | ||
* `chmod +x install_full.sh` | ||
3. Finally, execute the script. Run: | ||
* `./install_full.sh` | ||
# Manual Installation | ||
1. Download the source code `tar.gz` from the latest release | ||
|
||
2. Extract it into a folder somewhere somewhere | ||
|
||
3. Right Click inside the folder > Open in Terminal | ||
|
||
4. Check python version. Run: | ||
* `python3 --version` | ||
* Anything Python 3.x should run - Ideally 3.9.x but 3.8.x seems to work too | ||
|
||
5. Check if pip installed - Run: | ||
* `pip` or `pip3` | ||
* If not installed run: `sudo apt install python3-pip`(This is for Ubuntu/Debian-based distributions. For other distributions, try the automatic installation or use the distribution's own package manger.) | ||
|
||
6. Install dependencies. Run: | ||
* `pip3 install -r requirements.txt` | ||
7. Install the tkinter library. Run: | ||
* `sudo apt-get install python3-tk` | ||
# Running The YouTube Spammer Purge application | ||
1. Run the script: | ||
* `python3 YouTubeSpammerPurge.py` (usually case sensitive, you can just rename it) | ||
|
||
2. Remember: To use it, you need an API key in the form of a `client_secrets.json` file | ||
* See instructions in [the ReadMe](https://github.com/ThioJoe/YouTube-Spammer-Purge#instructions---obtaining-youtube-api-key) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/bin/bash | ||
#checks for python; if not installed will install it | ||
command -v python >/dev/null 2>&1 || { py_installed = false;} | ||
if [ "$py_installed" = false ] ; then | ||
if [[ -e /etc/debian_version ]]; then | ||
apt install python3 | ||
elif [[ -e /etc/fedora-release ]]; then | ||
dnf install python3 | ||
elif [[ -e /etc/centos-release ]]; then | ||
yum install tkinter | ||
elif [[ -e /etc/arch-release ]]; then | ||
pacman -Syu python3 | ||
else | ||
echo "Looks like you aren't running this installer on a Debian, Ubuntu, Fedora, CentOS, Arch Linux system." | ||
exit 1 | ||
fi | ||
fi | ||
#install tkinter, a dependency | ||
if [[ -e /etc/debian_version ]]; then | ||
apt-get install python3-tk | ||
elif [[ -e /etc/fedora-release ]]; then | ||
dnf install python3 | ||
elif [[ -e /etc/centos-release ]]; then | ||
yum install tkinter | ||
elif [[ -e /etc/arch-release ]]; then | ||
pacman -Syu python3 | ||
fi | ||
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py | ||
python3 get-pip.py | ||
# Uncomment if running this script alone, to also install the files for Youtube-Spammer-Purge | ||
: 'curl https://codeload.github.com/ThioJoe/YouTube-Spammer-Purge/tar.gz/refs/tags/v2.2.5 -o yt-spammer.tar.gz | ||
tar -xzf yt-spammer.tar.gz | ||
rm yt-spammer.tar.gz | ||
cd YouTube-Spammer-Purge-2.2.5/' | ||
rm get-pip.py | ||
pip install -r requirements.txt | ||
printf "Dependencies and Program installed!\nNow follow these instructions to get a client_secrets.json file!\nhttps://github.com/ThioJoe/YouTube-Spammer-Purge#instructions---obtaining-youtube-api-key" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
#checks for python; if not installed will install it | ||
command -v python >/dev/null 2>&1 || { pacman -S python; dnf install python3; apt install python3; zypper install python3; emerge python;} | ||
#install tkinter, a dependency | ||
apt-get install python3-tk; pacman -Syu tk; dnf install python3-tkinter; zypper install python3-tk | ||
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py | ||
python3 get-pip.py | ||
# Uncomment if running this script alone, to also install the files for Youtube-Spammer-Purge | ||
curl https://codeload.github.com/ThioJoe/YouTube-Spammer-Purge/tar.gz/refs/tags/v2.2.5 -o yt-spammer.tar.gz | ||
tar -xzf yt-spammer.tar.gz | ||
rm yt-spammer.tar.gz | ||
cd YouTube-Spammer-Purge-2.2.5/ | ||
rm get-pip.py | ||
pip install -r requirements.txt | ||
printf "Dependencies and Program installed!\nNow follow these instructions to get a client_secrets.json file!\nhttps://github.com/ThioJoe/YouTube-Spammer-Purge#instructions---obtaining-youtube-api-key" |