OpenWeatherMap API vs Wunderground API?

后端 未结 5 1353
渐次进展
渐次进展 2020-12-15 13:15

I don\'t see a lot of information available comparing the weather APIs that are available. What is the difference between OpenWeatherMap and Wunderground. I see that the pai

5条回答
  •  佛祖请我去吃肉
    2020-12-15 13:26

    I made small python script for WorldWeatherOnline historical weather data for my personal project. The result can be saved in pandas dataframe and csv files.

    Install the package:

    pip install wwo-hist
    

    Import package

    from wwo_hist import retrieve_hist_data
    import pandas as pd  
    

    Example code

    frequency=3
    start_date = '11-DEC-2018'
    end_date = '11-MAR-2019'
    api_key = 'YOUR_API_KEY'
    location_list = ['singapore','california']
    
    hist_weather_data = retrieve_hist_data(api_key,
                                    location_list,
                                    start_date,
                                    end_date,
                                    frequency,
                                    location_label = False,
                                    export_csv = True,
                                    store_df = True)
    

    You can check it out here.

    https://github.com/ekapope/WorldWeatherOnline

提交回复
热议问题