Skip to content

Instantly share code, notes, and snippets.

def get_countries_rosturizm():
url = "https://city.russia.travel/safety/kakie_strany_otkryty/"
html = get_html(url)
if html:
data = get_accepted_countries(html)
return data
else:
return None
import requests, string
from bs4 import BeautifulSoup
import log
def get_info_rosturizm(country_arr):
url = "https://city.russia.travel/safety/kakie_strany_otkryty/"
html = get_html(url)
if html:
data = parse_conditions_rosturizm(html, country_arr)
return data
{% extends "base.html" %}
{% block content %}
<h1>{{ page_title }}</h1>
<div class="row">
<div class="col-sm-2"></div>
<div class="col-sm-9">
<h3>{{ title }}</h3>
{% with messages = get_flashed_messages() %}
{% if messages %}
<div class="alert alert-warning" role="alert">
from getpass import getpass
import sys
from webapp import create_app
from webapp.model import User, db
app = create_app()
[{"nutscode": "PRT", "indicators": [{"domain_id": 7, "domain_name": "Travel", "region_id": null, "region_name": null, "indicator_id": 7003, "indicator_name": "What are the rules if I go abroad from this country, and when I return from abroad?", "visible": 1, "rules": [], "value": "", "colour": "", "comment": "<p>If you are Portuguese or you live in Portugal, you should consult the restrictions in each country from the Ministry of Foreign Affairs <a href=\"https://www.portaldascomunidades.mne.pt/pt/conselhos-aos-viajantes\" target=\"_blank\">Advice to Travellers</a> (in Portuguese)</p>", "start_date": "", "end_date": "", "withdrawal_date": "", "last_update": "16-09-2021", "regions": [], "historical": 0}]}, {"nutscode": "CZE", "indicators": [{"domain_id": 7, "domain_name": "Travel", "region_id": null, "region_name": null, "indicator_id": 7004, "indicator_name": "May I transit this country?", "visible": 1, "rules": [], "value": "", "colour": "yellow", "comment": "<p>As a general rule, passengers in transit in th
pg_config is required to build psycopg2 from source. Please add the directory
containing pg_config to the $PATH or specify the full executable path with the
option:
python setup.py build_ext --pg-config /path/to/pg_config build ...
or with the pg_config option in 'setup.cfg'.
If you prefer to avoid building psycopg2 from source, please install the PyPI
@lananovikova10
lananovikova10 / highload++.md
Last active September 18, 2019 07:24
Notes from Highload++ 2018

Управление знаниями по принципам DevOps

Управление знаниями

Управлять знаниями = Идентифицировать артефакты знания - логировать критические знания и навыки, фасилитировать обмен и находить узкие места

Зачем (с точки зрения проектных команд)?

  1. Risk-management
  2. Онбординг новичков и ротация
  3. Профессиональный рост внутри команды, компании
  4. Формирование культуры - прозрачность
@lananovikova10
lananovikova10 / teamleadconf.md
Last active August 10, 2022 20:19
additional materials from teamlead conf

Тут живут драконы. Матрица навыков как инструмент тимлида

Другие варианты матриц для команд разработки