Getting Youtube Sub Count With Linux Mint 18.2 & Social Blade
Page 1 of 1
Getting Youtube Sub Count With Linux Mint 18.2 & Social Blade
Getting Youtube Sub Count With Linux Mint 18.2 & Social Blade
Vid
Vid
- Code:
#/bin/bash
# (c) J~Net 2017
#
# Example:
# ./Get_Sub_Count_YT.sh
#
#
url="https://socialblade.com/youtube/user/"
id="jamieduk999"
echo "Hi, URL Set To "
out="$url$id"
wget $out
echo "Done"
echo ""
echo "Using Grep Now..."
cat $id | grep "Subscribers" | sed 's/[^0-9]*//g' > out.txt
# Now keep only the YT Sub Count
head -n -1 out.txt > temp.txt ; mv temp.txt out.txt
#
cat out.txt
Re: Getting Youtube Sub Count With Linux Mint 18.2 & Social Blade
YT Sub Counter For LCD Screen ESP 8266 Node MCU
- Code:
#/bin/bash
# (c) J~Net 2017
#
# Example:
# ./Get_Sub_Count_YT.sh
#
#
url="https://socialblade.com/youtube/user/"
id="jamieduk999"
url_lcd="http://192.168.0.62/submit?text_display=123"
lcd_ip="192.168.0.62"
#
echo "Hi, URL Set To "
out="$url$id"
wget $out
echo "Done"
echo ""
echo "Using Grep Now..."
cat $id | grep "Subscribers" | sed 's/[^0-9]*//g' > out.txt
# Now keep only the YT Sub Count
head -n -1 out.txt > temp.txt ; mv temp.txt out.txt
#
cat out.txt
echo "Transmitting To LCD Server...."
myvar=`cat out.txt` && curl --data "text_display=$myvar Subs" "$lcd_ip"/submit &> /dev/null
#
# curl --data "text_display=$uin" 192.168.0.62/submit
#
echo "Subs Displayed On LCD."
#$myvar=$('cat out.txt')
#wget "$url_lcd"/submit?text_display="$myvar"
# https://stackoverflow.com/questions/4881930/remove-the-last-line-from-a-file-in-bash
#
# https://stackoverflow.com/questions/18204326/how-to-post-url-in-data-of-a-curl-request
#
# put into var
#
# remove uneeded files
rm $id
echo "All Done"
echo "Want to run again?"
read -n 1 -s -r -p "Press any key to continue Or Ctrl C"
#
bash Get_Sub_Count_YT.sh
Similar topics
» Download Youtube Videos With Linux CLI
» KDE 5 for Linux Mint 17 and other linux distros like open suse
» Linux Mint 14 "Nadia" - KDE (64-bit)
» Download Protected Youtube Videos On Linux
» How To Use Linux Mint Extensions in any linux distro
» KDE 5 for Linux Mint 17 and other linux distros like open suse
» Linux Mint 14 "Nadia" - KDE (64-bit)
» Download Protected Youtube Videos On Linux
» How To Use Linux Mint Extensions in any linux distro
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum