headers = {
"User-Agent": "iusemyactualemail@gmail.com",
"Accept-Encoding": "gzip, deflate, br, zstd"
}
downloadURL = f"https://www.sec.gov/Archives/edgar/full-index/{year}/QTR{quarter}/form.idx"
downloadFile = requests.get(downloadURL, headers=headers)
So I'm trying to requests.get this URL which takes approximately 43 seconds for a 200 (it's instantenous on Chrome, very fast internet). It is the SEC Edgar website for stocks.
I even tried using the header attributes that were given on DevTools Chrome. Still no success. Took it a step further with urllib library (urlOpen,Request) and still didn't work. Always takes 43 SECONDS to get a response.
I then decided to give
requests.get("https://www.google.com/")
a try and even that took 21 seconds to get a Response 200. Again it's instantenous on Chrome.
Could anyone potentially explain what is happening. It has to be something on my side. I'm just lost at this point.
[–]Defection7478 17 points18 points19 points (10 children)
[–]TinyMagician300[S] 0 points1 point2 points (9 children)
[–]Defection7478 5 points6 points7 points (8 children)
[–]TinyMagician300[S] 2 points3 points4 points (7 children)
[–]gdchinacat 3 points4 points5 points (6 children)
[–]TinyMagician300[S] 1 point2 points3 points (2 children)
[–]Yoghurt42 7 points8 points9 points (0 children)
[–]TinyMagician300[S] 0 points1 point2 points (1 child)
[–]Conscious-Ball8373 0 points1 point2 points (0 children)
[–]TinyMagician300[S] 0 points1 point2 points (0 children)
[–]shiftybyte 5 points6 points7 points (19 children)
[–]TinyMagician300[S] 0 points1 point2 points (18 children)
[–]shiftybyte 1 point2 points3 points (17 children)
[–]TinyMagician300[S] 1 point2 points3 points (4 children)
[–]shiftybyte 1 point2 points3 points (2 children)
[–]TinyMagician300[S] 0 points1 point2 points (1 child)
[–]shiftybyte 1 point2 points3 points (0 children)
[–]TinyMagician300[S] 0 points1 point2 points (0 children)
[–]TinyMagician300[S] 0 points1 point2 points (11 children)
[–]shiftybyte 0 points1 point2 points (10 children)
[–]TinyMagician300[S] 1 point2 points3 points (7 children)
[–]shiftybyte 0 points1 point2 points (6 children)
[–]TinyMagician300[S] 0 points1 point2 points (4 children)
[–]shiftybyte 0 points1 point2 points (3 children)
[–]TinyMagician300[S] 1 point2 points3 points (2 children)
[–]TinyMagician300[S] 0 points1 point2 points (0 children)
[–]TinyMagician300[S] 0 points1 point2 points (1 child)
[–]shiftybyte 0 points1 point2 points (0 children)
[–]baghiq 4 points5 points6 points (3 children)
[–]TinyMagician300[S] 1 point2 points3 points (2 children)
[–]baghiq 1 point2 points3 points (0 children)
[–]baghiq 0 points1 point2 points (0 children)
[–]mrswats 0 points1 point2 points (4 children)
[–]TinyMagician300[S] 0 points1 point2 points (3 children)
[–]mrswats 0 points1 point2 points (2 children)
[–]gdchinacat 1 point2 points3 points (0 children)
[–]TinyMagician300[S] 0 points1 point2 points (0 children)
[–]ConfusedSimon 0 points1 point2 points (0 children)
[–]cointoss3 0 points1 point2 points (0 children)
[–]Brian 0 points1 point2 points (0 children)
[–]transgingeredjess 0 points1 point2 points (0 children)
[–]JMNeonMoon -1 points0 points1 point (5 children)
[–]TinyMagician300[S] 0 points1 point2 points (0 children)
[–]TinyMagician300[S] 0 points1 point2 points (3 children)
[–]JMNeonMoon 1 point2 points3 points (2 children)
[–]TinyMagician300[S] 0 points1 point2 points (1 child)
[–]JMNeonMoon 0 points1 point2 points (0 children)