Git Product home page Git Product logo

1one's Introduction

Получить погоду в местах из списка

В функции main в файле weather.py указать список мест, для которых требуется получить данные о погоде.

request_places = ["place1", "place2", "placeN"]

Источник погоды

Как установить

Python3 должен быть уже установлен. Используется встроенный модуль requests.

Запуск

python3 weather.py

Результат в коносли

================================================================ svo

  \   /     Солнечно
   .-.      26 °C
― (   ) ―   → 4 м/c
   `-’      10 км
  /   \     0.0 мм
                    ┌─────────────┐

┌───────────────────────┤ Пн. 17 июля ├───────────────────────┐ │ День └──────┬──────┘ Ночь │ ├──────────────────────────────┼──────────────────────────────┤ │ \ / Солнечно │ \ / Солнечно │ │ .-. 25 °C │ .-. 21 °C │ │ ― ( ) ― ↘ 1-2 м/c │ ― ( ) ― ↖ 1-3 м/c │ │ -’ 10 км │-’ 10 км │ │ / \ 0.0 мм | 0% │ / \ 0.0 мм | 0% │ └──────────────────────────────┴──────────────────────────────┘ ┌─────────────┐ ┌───────────────────────┤ Вт. 18 июля ├───────────────────────┐ │ День └──────┬──────┘ Ночь │ ├──────────────────────────────┼──────────────────────────────┤ │ \ / Переменная обл…│ /"".-. Небольшой ливн…│ │ _ /"".-. +26(27) °C │ ,\_( ). 17 °C │ │ \_( ). ↘ 3 м/c │ /(___(__) → 2-4 м/c │ │ /(___(__) 10 км │ ‘ ‘ ‘ ‘ 10 км │ │ 0.0 мм | 0% │ ‘ ‘ ‘ ‘ 0.6 мм | 76% │ └──────────────────────────────┴──────────────────────────────┘ ┌─────────────┐ ┌───────────────────────┤ Ср. 19 июля ├───────────────────────┐ │ День └──────┬──────┘ Ночь │ ├──────────────────────────────┼──────────────────────────────┤ │ _/"".-. Небольшой ливн…│`/"".-. Местами дождь │ │ ,_( ). 20 °C │ ,_( ). 16 °C │ │ /(() → 7-8 м/c │ /(() → 4-6 м/c │ │ ‘ ‘ ‘ ‘ 10 км │ ‘ ‘ ‘ ‘ 10 км │ │ ‘ ‘ ‘ ‘ 0.2 мм | 78% │ ‘ ‘ ‘ ‘ 0.1 мм | 66% │ └──────────────────────────────┴──────────────────────────────┘

1one's People

Watchers

Roman avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.