Nasa’s Mars Weather API will provide weather data from Elysium Planitia region of Mars continously in terms of temperature, wind and pressure.
Here is a simply code that uses requests and json libraries.
Below you can find a simple code to extract temperature and wind data from Mars.