bypassed captcha

This commit is contained in:
JimboKearn 2021-07-16 17:43:09 +05:30
parent f5ef3e8cde
commit 599e18e531
2 changed files with 7 additions and 14 deletions

View File

@ -1,7 +1,7 @@
## **NOT WORKING**: https://gogoanime.vc, has added a captcha to block bots
# ani-cli
This is a fork of pystardust's [old-ani-cli](https://github.com/pystardust/ani-cli/tree/old-ani-cli)
A cli to browse and watch anime.
This tool scrapes the site [gogoanime](https://gogoanime.vc).

15
ani-cli
View File

@ -70,19 +70,10 @@ get_links () {
dpage_url=$(
curl -s "https://gogoanime.vc/$anime_id-episode-$ep_no" |
sed -n -E '
/^[[:space:]]*<li class="dowloads">/{
s/.*href="([^"]*)".*/\1/p
q
}')
sed -n -E 's_^[[:space:]]*<a href="#" rel="100" data-video="([^"]*)" >.*_https:\1_p')
curl -s "$dpage_url" |
sed -n -E '
/^[[:space:]]*href="([^"]*\.mp4)".*/{
s/^[[:space:]]*href="([^"]*\.mp4)".*/\1/p
q
}
'
sed -n -E "s/^[[:space:]]*sources:\[\{file\: '([^']*)'.*/\1/p" | sed 1q
}
dep_ch () {
@ -174,6 +165,8 @@ open_episode () {
anime_id=$1
episode=$2
# clear the screen
printf '\x1B[2J\x1B[1;1H'
if [ $episode -lt 1 ] || [ $episode -gt $last_ep_number ]; then
err "Episode out of range"
printf "${c_blue}Choose episode $c_cyan[1-%d]$c_reset:$c_green " $last_ep_number