Ran into the same problem, although I was using selenium. Add your features (such as option to select quality). Finally, we can send the redirect url a request and write the contents to a file. So, I initially sent a request to the downloads page, then to the lowest quality (just to save time on download, server is slow) which have a location in the response header (also known as redirecting url). On checking the requests trail, the download links has a redirecting url with a time bound token included as args. Print("base error", response.status_code) Print("download error", response.status_code) Response = my_session.get(url, headers=) #Referer is necessary else it throws 403 My_session = cloudscraper.create_scraper()įor_cookies = my_session.get("") #don't know whether to use gogoanime or gogoplay1 Here's the code that fails to download from the link. You can run this code for more (of different quality) import requests_html Here is one of the described download links - > I read somewhere that I needed to be authenticated into some servers, but I couldn't find the authentication type for gogoanime or gogoplay1. I spent a very long time going over the code, but I can't get the tokens to help me. It's also worth noting that this package - >, while is currently broken, mentions something regarding "tokens". I've tried many things, such as fake user agents, modifying cookies, and using cloudflare, but every time I request the download link, I'm hit with a 403 forbidden error. It seems like these link downloads are from "vidstreaming", which was later renamed to gogoplay1 ->. I've already been able to scrape these links, but I can't download them through Python. However, there will be a 403 error if you paste the link into a new tab. The download will also start if you select "save link as". If you click on any of the link downloads, the episode will start downloading. This is the download page for the above episode. ! PLEASE HAVE AN AD BLOCKER BEFORE CLICKING ANY OF THE LINKS !Įach episode has a download button. It's also worth noting that I'm only making this for personal use. The website I'm using is Gogoanime, which allows users to watch and download anime.
0 Comments
Leave a Reply. |