from urllib.request import urlopen
from bs4 import BeautifulSoup
html = urlopen("http://www.animeplus.tv/anime-show-list/")
content =(html.read())
soup = BeautifulSoup(content)
print(soup.prettify())
The script works fine with other webpages, but I run the program for my targeted website I get.
<meta .$_server["request_uri"]."'"="" content="0;URL='" http-equiv="refresh"/>
I do not really understand the html code.
I assume it's some sort of redirect or way to prevent web scraping.
Is there a way for python to access the code after the redirect or in a way the browser would return the source code?
Thank you!