Same request but different image
-
I have been accessing Windy.com capturing the current atmospheric conditions in the form of screenshots.
In a Python program I call:
"https://www.windy.com/-PM2-5-pm2p5?cams,pm2p5,31.199,73.652,7,i:pressure,m:exLaieX" and I always get the image including the What's New in Versions 47 advertisement, see image. However when I type the call in my browser is gives me the "clean" image without the Advertisement. see 2nd image. The advertisement is not the problem (I understand the need to advertise) if it would be superimposed on the image, but it moves the image across. Why would this be? The same call/request but a different result.
CLEAN.jpg
-
Hello there :) Accessing Windy.com programmatically is not exactly a use case we are focusing on. However, we do have some options for developers that could make it easier for you. Could you please tell me more about your use case? I might be able to suggest some ways that would be better for you.
-
Thanks for replying. I access the respective images of SO2, NO2 and PM2.5 every hour using the address mentioned before (for PM2.5) and then for a particular location (x,y) grid point on the image I get the RGB value, and then convert the RGB values to a concentration. In this way I can track the concentrations over time for a given location for research purposes. It's only when the PM2.5 image comes up the image is shifted to make way for the advertisement. I don't know why it only pops up when I access the PM2.5 image, but also why it happens when I access the website via Google Chrome via Python code, and it doesn't happen when I use the address by itself via Google Chrome
. -
@dmbakker The fact that the promo was displayed is stored in the browser's indexedDB, as seenPromos.
If you load the page programmatically, you have to ensure that indexedDB is stored, similar to the browser.
-
@dmbakker If you want to get air quality data for a specific location, I would recommend using our Point Forecast API and just fetching the data directly.