Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ThioJoe committed Dec 28, 2021
2 parents c9626aa + 6b2697d commit e39353b
Show file tree
Hide file tree
Showing 4 changed files with 92 additions and 6 deletions.
34 changes: 34 additions & 0 deletions Linux-Installation-Instructions.md
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)
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# YouTube Spammer Purge

**What Is This?** - Allows you to filter and search for spammer comments on your channel in many different ways AND delete them all at once (see features below).
**What Is This?** - Allows you to filter and search for spammer comments on your channel and other's channel(s) in many different ways AND delete/report them all at once (see features below).

**How to Download:** Click the "[Releases](https://github.com/ThioJoe/YouTube-Spammer-Purge/releases)" link on the right, then on the latest release, under 'Assets' click to download "YouTubeSpammerPurge.exe". NOTE: You may get a warning - See "[Download & Windows Warning](#download--windows-warning)" section below for details.

Expand Down Expand Up @@ -65,15 +65,15 @@ If you feel sketched out about giving the app the required high level permission
## Screenshots

<p align="center">Opening Menu:</p>
<p align="center"><img width="624" alt="Opening Menu" src="https://user-images.githubusercontent.com/12518330/146690133-208df9b3-61ba-4b40-bf26-a88708b15f2d.png"></p>
<p align="center"><img width="675" alt="Opening Menu" src="https://user-images.githubusercontent.com/93459510/147557851-6d517280-6e20-4dfd-ab78-1a2357f710a7.png"></p>
<p align="center">Filter Mode Selection:</p>
<p align="center"><img width="770" alt="Filter Mode Selection" src="https://user-images.githubusercontent.com/12518330/146690135-9d05e95a-900e-4c76-9e3c-f3573fa7e8ff.png"></p>
<p align="center"><img width="675" alt="Filter Mode Selection" src="https://user-images.githubusercontent.com/93459510/147558339-28dc9fec-a51b-48be-a1bb-4f8b9e6cb3f6.png"></p>
<p align="center">Scanning (Auto Smart Mode):</p>
<p align="center"><img width="794" alt="Scanning" src="https://user-images.githubusercontent.com/12518330/146690142-b7abda6f-90bd-4681-9497-46378dcb3d9f.png"></p>
<p align="center"><img width="675" alt="Scanning" src="https://user-images.githubusercontent.com/93459510/147558617-b097e342-40bb-48df-ab59-d6a985a2322a.png"></p>
<p align="center">Matched Comments List:</p>
<p align="center"><img width="794" alt="Matched Comments List" src="https://user-images.githubusercontent.com/12518330/146690145-e7ca5b32-8213-4075-92d6-0ca3f4cc8d4e.png"></p>
<p align="center"><img width="675" alt="Matched Comments List" src="https://user-images.githubusercontent.com/93459510/147558790-881b4871-e3de-43fe-be02-2fce6a03304d.png"></p>
<p align="center">Match Samples and Deletion Menu:</p>
<p align="center"><img width="794" alt="Match Samples and Deletion Menu" src="https://user-images.githubusercontent.com/12518330/146690147-e19d8666-68d1-45db-aa13-0e56b68ce7b4.png"></p>
<p align="center"><img width="738" alt="Match Samples and Deletion Menu" src="https://user-images.githubusercontent.com/93459510/147559013-7b1f59c7-4433-4b19-8e2e-7988d5d29ee5.png"></p>

## Installation

Expand Down
37 changes: 37 additions & 0 deletions install.sh
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"
15 changes: 15 additions & 0 deletions install_full.sh
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"

0 comments on commit e39353b

Please sign in to comment.