Is there a way to pull web data with python requests on a link guarded by edgepilot?

1 week ago 9
ARTICLE AD BOX

I am working on automatically storing reports I receive as a download link via email everyday. The cybersecurity company we work with uses Edgepilot (a security proxy) to protect our links so every link I receive in my email is remixed to an edgepilot link. Using the python requests library on the extracted links has not worked despite the fact that it is supposed to support redirects. The request instead returns the html of the loading page on edgepilot. Does anyone know a way around this? I have tried to decode the links with online decoders and have not found anything that works reliably for longer links. Every link goes through the below screen before rerouting. When I paste in the final link after redirection it downloads the correct file. I've included an example edgepilot link that goes to stackoverflow. See code snippet below.

import requests Input_URL = "https://link.edgepilot.com/s/8a4dc2da/2JynPktBnUCAHP4x_SgXvw?u=http://stackoverflow.com/" #Pull the file from given link response = requests.get(Input_URL,timeout=15) if(response.status_code==200): print("Successful Retrieval") else: print("Retrieval Failed")

https://link.edgepilot.com/s/8a4dc2da/2JynPktBnUCAHP4x_SgXvw?u=http://stackoverflow.com/

Read Entire Article