Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
#!/bin/bash clear s="https://thepiratebay.org/search" tmp="/tmp/pb.results" #color settings bold=`echo -en "\e[1m"` red=`echo -en "\e[31m"` default=`echo -en "\e[39m"` blue=`echo -en "\e[34m"` reverse=`echo -en "\e[7m"` normal=`echo -en "\e[0m"` if [ ! -f "/usr/bin/aria2c" ] then echo "aria2c does not seem to be install" echo "I will now try and install it..." sudo apt install aria2 ||exit 0 fi if [ "$1" == "" ] then echo -n "${reverse}What would you like to search for:${normal} ${default}" read q else q="$1" fi echo "Searching for ${bold}${red}${q}${normal}${default}..." wget -q "$s/$q" -O-|grep '^
"$tmp" cat -n $tmp|cut -d\| -f1 echo -n "${bold}${blue}Please select a number to download: ${default}${normal}" read s echo "${blue}" echo "${default}" d="$(sed "${s}q;d" $tmp|cut -d\| -f2)" echo "${bold}Running Command: ${red}aria2c '$d'${default}${nomral}" aria2c "$d"
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)