{"id":468227,"date":"2025-07-22T15:01:56","date_gmt":"2025-07-22T15:01:56","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=468227"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=468227","title":{"rendered":"<span>\u041a\u0430\u043a \u044f \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043b \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0441\u043f\u043e\u0440\u0442\u0438\u0432\u043d\u044b\u0445 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u043e\u0432 \u0441 raceodds.net: \u043e\u0442 \u0445\u0430\u043e\u0441\u0430 \u043a \u043f\u0440\u043e\u0433\u043d\u043e\u0437\u043d\u043e\u0439 \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0435<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\ud83d\udccd \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0441\u044b\u0440\u044b\u043c\u0438 \u0441\u043f\u043e\u0440\u0442\u0438\u0432\u043d\u044b\u043c\u0438 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u0430\u043c\u0438 \u2014 \u044d\u0442\u043e \u043a\u0430\u043a \u043f\u044b\u0442\u0430\u0442\u044c\u0441\u044f \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043c\u043e\u0434\u0435\u043b\u044c \u043a\u043e\u0440\u0430\u0431\u043b\u044f \u0438\u0437 \u0440\u0430\u0437\u0431\u0440\u043e\u0441\u0430\u043d\u043d\u044b\u0445 \u0434\u0435\u0442\u0430\u043b\u0435\u0439 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0430. \u0411\u0435\u0437 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438. \u0418 \u0441 \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u043e\u0439 \u043b\u0438\u0448\u043d\u0438\u0445 \u0437\u0430\u043f\u0447\u0430\u0441\u0442\u0435\u0439.<\/p>\n<hr\/>\n<h4>\u041a\u043e\u043d\u0442\u0435\u043a\u0441\u0442<\/h4>\n<p>\u042f \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a \u0432 \u0444\u0438\u043d\u0442\u0435\u0445-\u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438, \u0438 \u043e\u0434\u043d\u0430 \u0438\u0437 \u043d\u0430\u0448\u0438\u0445 \u0437\u0430\u0434\u0430\u0447 \u2014 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0430\u043d\u0430\u043b\u0438\u0437 \u0441\u043f\u043e\u0440\u0442\u0438\u0432\u043d\u044b\u0445 \u043b\u0438\u043d\u0438\u0439. \u0426\u0435\u043b\u044c \u2014 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c \u0441\u0438\u0433\u043d\u0430\u043b\u044b \u0434\u043b\u044f \u043f\u0440\u043e\u0433\u043d\u043e\u0437\u043e\u0432, \u0438\u0441\u043a\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u043e\u0446\u0435\u043d\u0451\u043d\u043d\u044b\u0435 \u0438\u0441\u0445\u043e\u0434\u044b, \u0430\u043d\u043e\u043c\u0430\u043b\u0438\u0438, \u0438\u043d\u043e\u0433\u0434\u0430 \u0434\u0430\u0436\u0435 \u0430\u0440\u0431\u0438\u0442\u0440\u0430\u0436\u043d\u044b\u0435 \u043e\u043a\u043d\u0430.<\/p>\n<p>\u0418\u0434\u0435\u044f \u043f\u0440\u043e\u0441\u0442\u0430\u044f: \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0441 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u0430\u043c\u0438, \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0438 \u043f\u0440\u043e\u0433\u043e\u043d\u044f\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u043d\u0430\u0448\u0443 \u043c\u043e\u0434\u0435\u043b\u044c.<\/p>\n<p>\u041d\u0430 \u044d\u0442\u0430\u043f\u0435 \u0442\u0435\u0441\u0442\u043e\u0432 \u0432\u044b\u0431\u043e\u0440 \u043f\u0430\u043b \u043d\u0430 <a href=\"http:\/\/raceodds.net\" rel=\"noopener noreferrer nofollow\">raceodds.net<\/a> \u2014 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0443 \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c API \u0438 \u043e\u0445\u0432\u0430\u0442\u043e\u043c \u043f\u043e \u0441\u043e\u0442\u043d\u044f\u043c \u043b\u0438\u0433, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u043c\u0435\u043b\u043a\u0438\u0435 \u0447\u0435\u043c\u043f\u0438\u043e\u043d\u0430\u0442\u044b. \u0418 \u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0431\u044b \u2014 \u0431\u0435\u0440\u0438 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439. \u041d\u043e&#8230;<\/p>\n<hr\/>\n<h4>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043d\u0430 \u0432\u0445\u043e\u0434\u0435<\/h4>\n<p>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043b\u0441\u044f \u043a \u0438\u0445 API \u2014 \u0438 \u0441\u0440\u0430\u0437\u0443 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u044e\u0440\u043f\u0440\u0438\u0437\u043e\u0432:<\/p>\n<p><strong>1. \u0428\u0443\u043c \u0438 \u043c\u0443\u0441\u043e\u0440 \u0432 \u043e\u0442\u0432\u0435\u0442\u0430\u0445<\/strong><\/p>\n<p> \u041a\u0430\u0436\u0434\u044b\u0439 \u043e\u0442\u0432\u0435\u0442 \u2014 \u044d\u0442\u043e \u043c\u0430\u0441\u0441\u0438\u0432 \u0438\u0437 50\u201370 \u043f\u043e\u043b\u0435\u0439, \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u043d\u0443\u0436\u043d\u043e 6\u20138. \u041e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435: \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b, \u0444\u043b\u0430\u0433\u0438, \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u0435 \u043a\u043b\u044e\u0447\u0438, \u043f\u0443\u0441\u0442\u044b\u0435 \u043f\u043e\u043b\u044f.<\/p>\n<p><strong>2. \u041d\u0435\u043e\u0434\u043d\u043e\u0440\u043e\u0434\u043d\u043e\u0441\u0442\u044c \u0444\u043e\u0440\u043c\u0430\u0442\u043e\u0432<\/strong><\/p>\n<ul>\n<li>\n<p>\u0414\u0430\u0442\u044b \u0432 \u0440\u0430\u0437\u043d\u044b\u0445 \u0444\u043e\u0440\u043c\u0430\u0442\u0430\u0445: 2025-07-21T19:30:00Z, 21\/07\/2025 19:30, unix timestamp<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434 \u043e\u0442\u043b\u0438\u0447\u0430\u043b\u0438\u0441\u044c \u0434\u0430\u0436\u0435 \u0432\u043d\u0443\u0442\u0440\u0438 \u043e\u0434\u043d\u043e\u0439 \u043b\u0438\u0433\u0438:<\/p>\n<\/li>\n<li>\n<p> Manchester Utd, Man United, Manchester United FC<\/p>\n<\/li>\n<\/ul>\n<p><strong>3. \u0414\u0443\u0431\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u0439<\/strong><\/p>\n<p> \u041e\u0434\u043d\u043e \u0438 \u0442\u043e \u0436\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u043b\u043e \u043f\u043e\u0434 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 ID \u2014 \u043e\u0442 \u0440\u0430\u0437\u043d\u044b\u0445 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u0432, \u043d\u043e \u0441 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u043d\u0430\u0431\u043e\u0440\u0430\u043c\u0438 \u043c\u0430\u0440\u043a\u0435\u0442\u043e\u0432 \u0438 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u043e\u0432. \u0427\u0430\u0441\u0442\u043e \u2014 \u0441 \u0440\u0430\u0437\u043d\u043e\u0439 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c\u044e.<\/p>\n<p><strong>4. \u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u043d\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043c\u0430\u0440\u043a\u0435\u0442\u043e\u0432<\/strong><\/p>\n<p> \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0440\u044b\u043d\u043e\u043a &#171;\u041e\u0431\u0435 \u0437\u0430\u0431\u044c\u044e\u0442&#187; \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u043a\u0430\u043a:<\/p>\n<p> BTTS, BothTeamsScore, BTS, goalgoal \u2014 \u0432\u0441\u0451 \u044d\u0442\u043e \u043e\u0434\u043d\u043e \u0438 \u0442\u043e \u0436\u0435, \u043d\u043e \u0432 \u0431\u0430\u0437\u0435 \u043e\u043d\u0438 \u0448\u043b\u0438 \u043a\u0430\u043a \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0435 \u0437\u0430\u043f\u0438\u0441\u0438.<\/p>\n<hr\/>\n<h4>\u041a\u0430\u043a \u044f \u044d\u0442\u043e \u0440\u0435\u0448\u0438\u043b: \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d<\/h4>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0447\u0435\u0440\u0435\u0437 \u043d\u0435\u0434\u0435\u043b\u044e \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u043e\u0432 \u0438 \u0440\u0443\u0433\u0430\u043d\u0438 \u0441 JSON-\u043e\u0442\u0432\u0435\u0442\u0430\u043c\u0438 API, \u0440\u0435\u0448\u0438\u043b \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 ETL-\u043f\u0440\u043e\u0446\u0435\u0441\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0435\u0448\u0438\u043b \u0441\u0440\u0430\u0437\u0443 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0434\u0430\u0447.<\/p>\n<h4>1. \u0421\u0431\u043e\u0440 \u0434\u0430\u043d\u043d\u044b\u0445: fetcher.py<\/h4>\n<ul>\n<li>\n<p>\u041f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u0430\u044f \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0430 \u043f\u043e \u043b\u0438\u0433\u0430\u043c \u0447\u0435\u0440\u0435\u0437 aiohttp<\/p>\n<\/li>\n<li>\n<p>\u041b\u0438\u043c\u0438\u0442 \u043d\u0430 \u0447\u0430\u0441\u0442\u043e\u0442\u0443 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 (\u0438\u043d\u0430\u0447\u0435 API \u0440\u0435\u0436\u0435\u0442)<\/p>\n<\/li>\n<li>\n<p>\u0410\u0432\u0442\u043e-\u0440\u0435\u0442\u0440\u0430\u0439 \u043f\u0440\u0438 5xx\/timeout<\/p>\n<\/li>\n<\/ul>\n<pre><code>python  async def fetch_league_data(session, league_id):     async with session.get(f\"{API_BASE}\/odds?league={league_id}\") as resp:         return await resp.json( <\/code><\/pre>\n<h4>2. \u041d\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f: normalizer.py<\/h4>\n<ul>\n<li>\n<p>\u0412\u0441\u0435 \u0434\u0430\u0442\u044b \u2014 \u0432 UTC ISO 8601<\/p>\n<\/li>\n<li>\n<p>\u041a\u043e\u043c\u0430\u043d\u0434\u044b \u2014 \u0447\u0435\u0440\u0435\u0437 \u0441\u043b\u043e\u0432\u0430\u0440\u044c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0439 + fuzzy matching (fuzzywuzzy)<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043c\u0430\u0440\u043a\u0435\u0442\u043e\u0432 \u2014 \u0447\u0435\u0440\u0435\u0437 enum-\u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u043b\u044f \u0443\u0434\u0430\u043b\u044f\u044e \u0436\u0451\u0441\u0442\u043a\u0438\u043c whitelist-\u0444\u0438\u043b\u044c\u0442\u0440\u043e\u043c<\/p>\n<\/li>\n<\/ul>\n<pre><code>python  NORMALIZED_FIELDS = ['event_id', 'league', 'teams', 'start_time', 'market', 'odds']  def clean_entry(entry):     return {k: entry[k] for k in NORMALIZED_FIELDS if k in entry} <\/code><\/pre>\n<h4>3. \u041e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u0439: deduplicator.py<\/h4>\n<ul>\n<li>\n<p>\u0421\u043e\u0431\u044b\u0442\u0438\u044f \u0441\u0447\u0438\u0442\u0430\u044e\u0442\u0441\u044f \u043e\u0434\u043d\u0438\u043c, \u0435\u0441\u043b\u0438:<\/p>\n<\/li>\n<li>\n<p>\u0420\u0430\u0437\u043d\u0438\u0446\u0430 \u0432\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 &lt; 10 \u043c\u0438\u043d\u0443\u0442<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u044e\u0442 \u043d\u0430 \u2265 85%<\/p>\n<\/li>\n<li>\n<p>\u041b\u0438\u0433\u0430 \u0442\u0430 \u0436\u0435<\/p>\n<\/li>\n<li>\n<p>\u0414\u043b\u044f \u043e\u0446\u0435\u043d\u043a\u0438 \u0441\u0445\u043e\u0436\u0435\u0441\u0442\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e Levenshtein distance<\/p>\n<\/li>\n<\/ul>\n<pre><code>python  def is_same_event(a, b):     return (a['league'] == b['league'] and             abs(a['start_time'] - b['start_time']) &lt; 600 and             fuzz.ratio(a['teams'][0], b['teams'][0]) &gt; 85) <\/code><\/pre>\n<h4>4. \u0425\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435: PostgreSQL<\/h4>\n<ul>\n<li>\n<p>\u0414\u0430\u043d\u043d\u044b\u0435 \u043f\u0438\u0448\u0443\u0442\u0441\u044f \u0432 \u0434\u0432\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b:<\/p>\n<\/li>\n<li>\n<p>events_normalized \u2014 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f<\/p>\n<\/li>\n<li>\n<p>odds_snapshots \u2014 \u0438\u0441\u0442\u043e\u0440\u0438\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u043e\u0432 \u043f\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438<\/p>\n<\/li>\n<\/ul>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u0438\u043d\u0434\u0435\u043a\u0441 \u043f\u043e (event_id, market, timestamp) \u2014 \u0447\u0442\u043e\u0431\u044b \u0431\u044b\u0441\u0442\u0440\u043e \u0432\u044b\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u0442\u044c \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u043b\u0438\u043d\u0438\u0438.<\/p>\n<hr\/>\n<h4>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442: \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0430, \u0430 \u043d\u0435 \u043a\u0430\u0448\u0430<\/h4>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043d\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445, \u0441\u0442\u0430\u043b\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u043c:<\/p>\n<ul>\n<li>\n<p>\u0410\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u043b\u0438\u043d\u0438\u0438 \u043f\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438: \u0432\u0438\u0434\u043d\u043e, \u043a\u0430\u043a \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442 \u043d\u0430 \u043f\u043e\u0431\u0435\u0434\u0443 \u043a\u043e\u043c\u0430\u043d\u0434\u044b X \u0437\u0430 24 \u0447\u0430\u0441\u0430 \u0434\u043e \u043c\u0430\u0442\u0447\u0430<\/p>\n<\/li>\n<li>\n<p>\u0412\u044b\u044f\u0432\u043b\u044f\u0442\u044c \u00ab\u0437\u0430\u043f\u0430\u0437\u0434\u044b\u0432\u0430\u044e\u0449\u0438\u0445\u00bb \u0431\u0443\u043a\u043c\u0435\u043a\u0435\u0440\u043e\u0432: \u043a\u0442\u043e \u0434\u043e\u043b\u044c\u0448\u0435 \u0432\u0441\u0435\u0445 \u0440\u0435\u0430\u0433\u0438\u0440\u0443\u0435\u0442 \u043d\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0440\u044b\u043d\u043a\u0430<\/p>\n<\/li>\n<li>\n<p>\u0412\u044b\u0434\u0435\u043b\u044f\u0442\u044c value-bets: \u0435\u0441\u043b\u0438 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442 \u0443 \u043e\u0434\u043d\u043e\u0439 \u0411\u041a \u0432\u044b\u0431\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0438\u0437 \u043e\u0431\u0449\u0435\u0433\u043e \u0442\u0440\u0435\u043d\u0434\u0430 \u2014 \u0441\u0438\u0433\u043d\u0430\u043b<\/p>\n<\/li>\n<\/ul>\n<hr\/>\n<h4>\u0412\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/h4>\n<p>\u0421\u043e\u0431\u0440\u0430\u043b \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0434\u0430\u0448\u0431\u043e\u0440\u0434 \u043d\u0430 Streamlit:<\/p>\n<ul>\n<li>\n<p>\u041f\u043e\u0438\u0441\u043a \u043f\u043e \u043b\u0438\u0433\u0430\u043c \u0438 \u0434\u0430\u0442\u0430\u043c<\/p>\n<\/li>\n<li>\n<p>\u0413\u0440\u0430\u0444\u0438\u043a \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u043e\u0432 \u043f\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u044f\u043c<\/p>\n<\/li>\n<li>\n<p>\u0422\u0430\u0431\u043b\u0438\u0446\u0430 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d\u0438\u0439 \u043c\u0435\u0436\u0434\u0443 \u0431\u0443\u043a\u043c\u0435\u043a\u0435\u0440\u0430\u043c\u0438<\/p>\n<\/li>\n<li>\n<p>\u0424\u0438\u043b\u044c\u0442\u0440 \u043f\u043e \u0430\u043d\u043e\u043c\u0430\u043b\u0438\u044f\u043c (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u043a\u0430\u0447\u043a\u0438 &gt;10% \u0437\u0430 1 \u0447\u0430\u0441)<\/p>\n<\/li>\n<\/ul>\n<p>\u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u0433\u0440\u0430\u0444\u0438\u043a\u0430 \u043f\u043e \u043c\u0430\u0442\u0447\u0443 \u00ab\u041b\u0438\u0434\u0441 \u2014 \u0421\u0443\u043e\u043d\u0441\u0438\u00bb:<\/p>\n<p>\ud83d\udfe1 \u041a\u043e\u044d\u0444. \u043d\u0430 \u043f\u043e\u0431\u0435\u0434\u0443 \u041b\u0438\u0434\u0441\u0430:<\/p>\n<p> \u2192 \u0432\u044b\u0440\u043e\u0441 \u0441 2.10 \u0434\u043e 2.65 \u0437\u0430 3 \u0447\u0430\u0441\u0430 \u2014 \u043d\u043e\u0432\u043e\u0441\u0442\u044c \u043e \u0442\u0440\u0430\u0432\u043c\u0435 \u043a\u0430\u043f\u0438\u0442\u0430\u043d\u0430<\/p>\n<hr\/>\n<h4>\u0427\u0442\u043e \u0441\u0442\u0430\u043b\u043e \u0434\u0430\u043b\u044c\u0448\u0435<\/h4>\n<ul>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u043b \u0432\u0442\u043e\u0440\u0438\u0447\u043d\u044b\u0439 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a (<a href=\"http:\/\/Betdata.io\" rel=\"noopener noreferrer nofollow\">Betdata.io<\/a>) \u0438 \u0442\u0435\u043f\u0435\u0440\u044c \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u044e \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439<\/p>\n<\/li>\n<li>\n<p>\u041f\u043b\u0430\u043d\u0438\u0440\u0443\u044e \u043d\u0430\u0442\u0440\u0435\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c LightGBM-\u043c\u043e\u0434\u0435\u043b\u044c \u043d\u0430 \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u0430\u0445 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u043b\u0438\u043d\u0438\u0438, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c value-\u0431\u0435\u0442\u0430<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0434\u0443\u043c\u044b\u0432\u0430\u044e \u043e\u0431 open-source \u0432\u0435\u0440\u0441\u0438\u0438 \u043d\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430 \u2014 \u0442\u0430\u043a\u0438\u0445 \u043a\u0435\u0439\u0441\u043e\u0432 \u0435\u0449\u0451 \u043c\u043d\u043e\u0433\u043e<\/p>\n<\/li>\n<\/ul>\n<hr\/>\n<h4>\u0412\u044b\u0432\u043e\u0434<\/h4>\n<p>\u041d\u0430 \u0441\u0442\u0430\u0440\u0442\u0435 \u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e <a href=\"http:\/\/raceodds.net\" rel=\"noopener noreferrer nofollow\">raceodds.net<\/a> \u2014 \u044d\u0442\u043e \u043a\u0443\u0447\u0430 \u043d\u0435\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0448\u0443\u043c\u0430. \u041d\u043e \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0438\u0442\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0443\u0441\u0438\u043b\u0438\u0439 (\u0438 \u043c\u043d\u043e\u0433\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438), \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u043f\u043e\u0442\u043e\u043a \u0432 \u043c\u043e\u0449\u043d\u044b\u0439 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0434\u043b\u044f \u0441\u043f\u043e\u0440\u0442\u0438\u0432\u043d\u043e\u0439 \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0438.<\/p>\n<p>\u0413\u043b\u0430\u0432\u043d\u043e\u0435 \u2014 \u043d\u0435 \u0431\u043e\u044f\u0442\u044c\u0441\u044f \u0433\u0440\u044f\u0437\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445. \u041e\u043d\u0438 \u2014 \u043a\u0430\u043a \u0440\u0443\u0434\u0430. \u041f\u043e\u043a\u0430 \u043d\u0435 \u043f\u0435\u0440\u0435\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0448\u044c \u2014 \u0437\u043e\u043b\u043e\u0442\u0430 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/930020\/\"> https:\/\/habr.com\/ru\/articles\/930020\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\ud83d\udccd \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0441\u044b\u0440\u044b\u043c\u0438 \u0441\u043f\u043e\u0440\u0442\u0438\u0432\u043d\u044b\u043c\u0438 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u0430\u043c\u0438 \u2014 \u044d\u0442\u043e \u043a\u0430\u043a \u043f\u044b\u0442\u0430\u0442\u044c\u0441\u044f \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043c\u043e\u0434\u0435\u043b\u044c \u043a\u043e\u0440\u0430\u0431\u043b\u044f \u0438\u0437 \u0440\u0430\u0437\u0431\u0440\u043e\u0441\u0430\u043d\u043d\u044b\u0445 \u0434\u0435\u0442\u0430\u043b\u0435\u0439 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0430. \u0411\u0435\u0437 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438. \u0418 \u0441 \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u043e\u0439 \u043b\u0438\u0448\u043d\u0438\u0445 \u0437\u0430\u043f\u0447\u0430\u0441\u0442\u0435\u0439.<\/p>\n<hr\/>\n<h4>\u041a\u043e\u043d\u0442\u0435\u043a\u0441\u0442<\/h4>\n<p>\u042f \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a \u0432 \u0444\u0438\u043d\u0442\u0435\u0445-\u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438, \u0438 \u043e\u0434\u043d\u0430 \u0438\u0437 \u043d\u0430\u0448\u0438\u0445 \u0437\u0430\u0434\u0430\u0447 \u2014 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0430\u043d\u0430\u043b\u0438\u0437 \u0441\u043f\u043e\u0440\u0442\u0438\u0432\u043d\u044b\u0445 \u043b\u0438\u043d\u0438\u0439. \u0426\u0435\u043b\u044c \u2014 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c \u0441\u0438\u0433\u043d\u0430\u043b\u044b \u0434\u043b\u044f \u043f\u0440\u043e\u0433\u043d\u043e\u0437\u043e\u0432, \u0438\u0441\u043a\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u043e\u0446\u0435\u043d\u0451\u043d\u043d\u044b\u0435 \u0438\u0441\u0445\u043e\u0434\u044b, \u0430\u043d\u043e\u043c\u0430\u043b\u0438\u0438, \u0438\u043d\u043e\u0433\u0434\u0430 \u0434\u0430\u0436\u0435 \u0430\u0440\u0431\u0438\u0442\u0440\u0430\u0436\u043d\u044b\u0435 \u043e\u043a\u043d\u0430.<\/p>\n<p>\u0418\u0434\u0435\u044f \u043f\u0440\u043e\u0441\u0442\u0430\u044f: \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0441 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u0430\u043c\u0438, \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0438 \u043f\u0440\u043e\u0433\u043e\u043d\u044f\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u043d\u0430\u0448\u0443 \u043c\u043e\u0434\u0435\u043b\u044c.<\/p>\n<p>\u041d\u0430 \u044d\u0442\u0430\u043f\u0435 \u0442\u0435\u0441\u0442\u043e\u0432 \u0432\u044b\u0431\u043e\u0440 \u043f\u0430\u043b \u043d\u0430 <a href=\"http:\/\/raceodds.net\" rel=\"noopener noreferrer nofollow\">raceodds.net<\/a> \u2014 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0443 \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c API \u0438 \u043e\u0445\u0432\u0430\u0442\u043e\u043c \u043f\u043e \u0441\u043e\u0442\u043d\u044f\u043c \u043b\u0438\u0433, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u043c\u0435\u043b\u043a\u0438\u0435 \u0447\u0435\u043c\u043f\u0438\u043e\u043d\u0430\u0442\u044b. \u0418 \u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0431\u044b \u2014 \u0431\u0435\u0440\u0438 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439. \u041d\u043e&#8230;<\/p>\n<hr\/>\n<h4>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043d\u0430 \u0432\u0445\u043e\u0434\u0435<\/h4>\n<p>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043b\u0441\u044f \u043a \u0438\u0445 API \u2014 \u0438 \u0441\u0440\u0430\u0437\u0443 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u044e\u0440\u043f\u0440\u0438\u0437\u043e\u0432:<\/p>\n<p><strong>1. \u0428\u0443\u043c \u0438 \u043c\u0443\u0441\u043e\u0440 \u0432 \u043e\u0442\u0432\u0435\u0442\u0430\u0445<\/strong><\/p>\n<p> \u041a\u0430\u0436\u0434\u044b\u0439 \u043e\u0442\u0432\u0435\u0442 \u2014 \u044d\u0442\u043e \u043c\u0430\u0441\u0441\u0438\u0432 \u0438\u0437 50\u201370 \u043f\u043e\u043b\u0435\u0439, \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u043d\u0443\u0436\u043d\u043e 6\u20138. \u041e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435: \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b, \u0444\u043b\u0430\u0433\u0438, \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u0435 \u043a\u043b\u044e\u0447\u0438, \u043f\u0443\u0441\u0442\u044b\u0435 \u043f\u043e\u043b\u044f.<\/p>\n<p><strong>2. \u041d\u0435\u043e\u0434\u043d\u043e\u0440\u043e\u0434\u043d\u043e\u0441\u0442\u044c \u0444\u043e\u0440\u043c\u0430\u0442\u043e\u0432<\/strong><\/p>\n<ul>\n<li>\n<p>\u0414\u0430\u0442\u044b \u0432 \u0440\u0430\u0437\u043d\u044b\u0445 \u0444\u043e\u0440\u043c\u0430\u0442\u0430\u0445: 2025-07-21T19:30:00Z, 21\/07\/2025 19:30, unix timestamp<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434 \u043e\u0442\u043b\u0438\u0447\u0430\u043b\u0438\u0441\u044c \u0434\u0430\u0436\u0435 \u0432\u043d\u0443\u0442\u0440\u0438 \u043e\u0434\u043d\u043e\u0439 \u043b\u0438\u0433\u0438:<\/p>\n<\/li>\n<li>\n<p> Manchester Utd, Man United, Manchester United FC<\/p>\n<\/li>\n<\/ul>\n<p><strong>3. \u0414\u0443\u0431\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u0439<\/strong><\/p>\n<p> \u041e\u0434\u043d\u043e \u0438 \u0442\u043e \u0436\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u043b\u043e \u043f\u043e\u0434 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 ID \u2014 \u043e\u0442 \u0440\u0430\u0437\u043d\u044b\u0445 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u0432, \u043d\u043e \u0441 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u043d\u0430\u0431\u043e\u0440\u0430\u043c\u0438 \u043c\u0430\u0440\u043a\u0435\u0442\u043e\u0432 \u0438 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u043e\u0432. \u0427\u0430\u0441\u0442\u043e \u2014 \u0441 \u0440\u0430\u0437\u043d\u043e\u0439 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c\u044e.<\/p>\n<p><strong>4. \u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u043d\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043c\u0430\u0440\u043a\u0435\u0442\u043e\u0432<\/strong><\/p>\n<p> \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0440\u044b\u043d\u043e\u043a &#171;\u041e\u0431\u0435 \u0437\u0430\u0431\u044c\u044e\u0442&#187; \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u043a\u0430\u043a:<\/p>\n<p> BTTS, BothTeamsScore, BTS, goalgoal \u2014 \u0432\u0441\u0451 \u044d\u0442\u043e \u043e\u0434\u043d\u043e \u0438 \u0442\u043e \u0436\u0435, \u043d\u043e \u0432 \u0431\u0430\u0437\u0435 \u043e\u043d\u0438 \u0448\u043b\u0438 \u043a\u0430\u043a \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0435 \u0437\u0430\u043f\u0438\u0441\u0438.<\/p>\n<hr\/>\n<h4>\u041a\u0430\u043a \u044f \u044d\u0442\u043e \u0440\u0435\u0448\u0438\u043b: \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d<\/h4>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0447\u0435\u0440\u0435\u0437 \u043d\u0435\u0434\u0435\u043b\u044e \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u043e\u0432 \u0438 \u0440\u0443\u0433\u0430\u043d\u0438 \u0441 JSON-\u043e\u0442\u0432\u0435\u0442\u0430\u043c\u0438 API, \u0440\u0435\u0448\u0438\u043b \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 ETL-\u043f\u0440\u043e\u0446\u0435\u0441\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0435\u0448\u0438\u043b \u0441\u0440\u0430\u0437\u0443 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0434\u0430\u0447.<\/p>\n<h4>1. \u0421\u0431\u043e\u0440 \u0434\u0430\u043d\u043d\u044b\u0445: fetcher.py<\/h4>\n<ul>\n<li>\n<p>\u041f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u0430\u044f \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0430 \u043f\u043e \u043b\u0438\u0433\u0430\u043c \u0447\u0435\u0440\u0435\u0437 aiohttp<\/p>\n<\/li>\n<li>\n<p>\u041b\u0438\u043c\u0438\u0442 \u043d\u0430 \u0447\u0430\u0441\u0442\u043e\u0442\u0443 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 (\u0438\u043d\u0430\u0447\u0435 API \u0440\u0435\u0436\u0435\u0442)<\/p>\n<\/li>\n<li>\n<p>\u0410\u0432\u0442\u043e-\u0440\u0435\u0442\u0440\u0430\u0439 \u043f\u0440\u0438 5xx\/timeout<\/p>\n<\/li>\n<\/ul>\n<pre><code>python  async def fetch_league_data(session, league_id):     async with session.get(f\"{API_BASE}\/odds?league={league_id}\") as resp:         return await resp.json( <\/code><\/pre>\n<h4>2. \u041d\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f: normalizer.py<\/h4>\n<ul>\n<li>\n<p>\u0412\u0441\u0435 \u0434\u0430\u0442\u044b \u2014 \u0432 UTC ISO 8601<\/p>\n<\/li>\n<li>\n<p>\u041a\u043e\u043c\u0430\u043d\u0434\u044b \u2014 \u0447\u0435\u0440\u0435\u0437 \u0441\u043b\u043e\u0432\u0430\u0440\u044c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0439 + fuzzy matching (fuzzywuzzy)<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043c\u0430\u0440\u043a\u0435\u0442\u043e\u0432 \u2014 \u0447\u0435\u0440\u0435\u0437 enum-\u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u043b\u044f \u0443\u0434\u0430\u043b\u044f\u044e \u0436\u0451\u0441\u0442\u043a\u0438\u043c whitelist-\u0444\u0438\u043b\u044c\u0442\u0440\u043e\u043c<\/p>\n<\/li>\n<\/ul>\n<pre><code>python  NORMALIZED_FIELDS = ['event_id', 'league', 'teams', 'start_time', 'market', 'odds']  def clean_entry(entry):     return {k: entry[k] for k in NORMALIZED_FIELDS if k in entry} <\/code><\/pre>\n<h4>3. \u041e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u0439: deduplicator.py<\/h4>\n<ul>\n<li>\n<p>\u0421\u043e\u0431\u044b\u0442\u0438\u044f \u0441\u0447\u0438\u0442\u0430\u044e\u0442\u0441\u044f \u043e\u0434\u043d\u0438\u043c, \u0435\u0441\u043b\u0438:<\/p>\n<\/li>\n<li>\n<p>\u0420\u0430\u0437\u043d\u0438\u0446\u0430 \u0432\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 &lt; 10 \u043c\u0438\u043d\u0443\u0442<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u044e\u0442 \u043d\u0430 \u2265 85%<\/p>\n<\/li>\n<li>\n<p>\u041b\u0438\u0433\u0430 \u0442\u0430 \u0436\u0435<\/p>\n<\/li>\n<li>\n<p>\u0414\u043b\u044f \u043e\u0446\u0435\u043d\u043a\u0438 \u0441\u0445\u043e\u0436\u0435\u0441\u0442\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e Levenshtein distance<\/p>\n<\/li>\n<\/ul>\n<pre><code>python  def is_same_event(a, b):     return (a['league'] == b['league'] and             abs(a['start_time'] - b['start_time']) &lt; 600 and             fuzz.ratio(a['teams'][0], b['teams'][0]) &gt; 85) <\/code><\/pre>\n<h4>4. \u0425\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435: PostgreSQL<\/h4>\n<ul>\n<li>\n<p>\u0414\u0430\u043d\u043d\u044b\u0435 \u043f\u0438\u0448\u0443\u0442\u0441\u044f \u0432 \u0434\u0432\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b:<\/p>\n<\/li>\n<li>\n<p>events_normalized \u2014 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f<\/p>\n<\/li>\n<li>\n<p>odds_snapshots \u2014 \u0438\u0441\u0442\u043e\u0440\u0438\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u043e\u0432 \u043f\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438<\/p>\n<\/li>\n<\/ul>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u0438\u043d\u0434\u0435\u043a\u0441 \u043f\u043e (event_id, market, timestamp) \u2014 \u0447\u0442\u043e\u0431\u044b \u0431\u044b\u0441\u0442\u0440\u043e \u0432\u044b\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u0442\u044c \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u043b\u0438\u043d\u0438\u0438.<\/p>\n<hr\/>\n<h4>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442: \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0430, \u0430 \u043d\u0435 \u043a\u0430\u0448\u0430<\/h4>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043d\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445, \u0441\u0442\u0430\u043b\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u043c:<\/p>\n<ul>\n<li>\n<p>\u0410\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u043b\u0438\u043d\u0438\u0438 \u043f\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438: \u0432\u0438\u0434\u043d\u043e, \u043a\u0430\u043a \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442 \u043d\u0430 \u043f\u043e\u0431\u0435\u0434\u0443 \u043a\u043e\u043c\u0430\u043d\u0434\u044b X \u0437\u0430 24 \u0447\u0430\u0441\u0430 \u0434\u043e \u043c\u0430\u0442\u0447\u0430<\/p>\n<\/li>\n<li>\n<p>\u0412\u044b\u044f\u0432\u043b\u044f\u0442\u044c \u00ab\u0437\u0430\u043f\u0430\u0437\u0434\u044b\u0432\u0430\u044e\u0449\u0438\u0445\u00bb \u0431\u0443\u043a\u043c\u0435\u043a\u0435\u0440\u043e\u0432: \u043a\u0442\u043e \u0434\u043e\u043b\u044c\u0448\u0435 \u0432\u0441\u0435\u0445 \u0440\u0435\u0430\u0433\u0438\u0440\u0443\u0435\u0442 \u043d\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0440\u044b\u043d\u043a\u0430<\/p>\n<\/li>\n<li>\n<p>\u0412\u044b\u0434\u0435\u043b\u044f\u0442\u044c value-bets: \u0435\u0441\u043b\u0438 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442 \u0443 \u043e\u0434\u043d\u043e\u0439 \u0411\u041a \u0432\u044b\u0431\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0438\u0437 \u043e\u0431\u0449\u0435\u0433\u043e \u0442\u0440\u0435\u043d\u0434\u0430 \u2014 \u0441\u0438\u0433\u043d\u0430\u043b<\/p>\n<\/li>\n<\/ul>\n<hr\/>\n<h4>\u0412\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/h4>\n<p>\u0421\u043e\u0431\u0440\u0430\u043b \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0434\u0430\u0448\u0431\u043e\u0440\u0434 \u043d\u0430 Streamlit:<\/p>\n<ul>\n<li>\n<p>\u041f\u043e\u0438\u0441\u043a \u043f\u043e \u043b\u0438\u0433\u0430\u043c \u0438 \u0434\u0430\u0442\u0430\u043c<\/p>\n<\/li>\n<li>\n<p>\u0413\u0440\u0430\u0444\u0438\u043a \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u043e\u0432 \u043f\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u044f\u043c<\/p>\n<\/li>\n<li>\n<p>\u0422\u0430\u0431\u043b\u0438\u0446\u0430 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d\u0438\u0439 \u043c\u0435\u0436\u0434\u0443 \u0431\u0443\u043a\u043c\u0435\u043a\u0435\u0440\u0430\u043c\u0438<\/p>\n<\/li>\n<li>\n<p>\u0424\u0438\u043b\u044c\u0442\u0440 \u043f\u043e \u0430\u043d\u043e\u043c\u0430\u043b\u0438\u044f\u043c (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u043a\u0430\u0447\u043a\u0438 &gt;10% \u0437\u0430 1 \u0447\u0430\u0441)<\/p>\n<\/li>\n<\/ul>\n<p>\u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u0433\u0440\u0430\u0444\u0438\u043a\u0430 \u043f\u043e \u043c\u0430\u0442\u0447\u0443 \u00ab\u041b\u0438\u0434\u0441 \u2014 \u0421\u0443\u043e\u043d\u0441\u0438\u00bb:<\/p>\n<p>\ud83d\udfe1 \u041a\u043e\u044d\u0444. \u043d\u0430 \u043f\u043e\u0431\u0435\u0434\u0443 \u041b\u0438\u0434\u0441\u0430:<\/p>\n<p> \u2192 \u0432\u044b\u0440\u043e\u0441 \u0441 2.10 \u0434\u043e 2.65 \u0437\u0430 3 \u0447\u0430\u0441\u0430 \u2014 \u043d\u043e\u0432\u043e\u0441\u0442\u044c \u043e \u0442\u0440\u0430\u0432\u043c\u0435 \u043a\u0430\u043f\u0438\u0442\u0430\u043d\u0430<\/p>\n<hr\/>\n<h4>\u0427\u0442\u043e \u0441\u0442\u0430\u043b\u043e \u0434\u0430\u043b\u044c\u0448\u0435<\/h4>\n<ul>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u043b \u0432\u0442\u043e\u0440\u0438\u0447\u043d\u044b\u0439 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a (<a href=\"http:\/\/Betdata.io\" rel=\"noopener noreferrer nofollow\">Betdata.io<\/a>) \u0438 \u0442\u0435\u043f\u0435\u0440\u044c \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u044e \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439<\/p>\n<\/li>\n<li>\n<p>\u041f\u043b\u0430\u043d\u0438\u0440\u0443\u044e \u043d\u0430\u0442\u0440\u0435\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c LightGBM-\u043c\u043e\u0434\u0435\u043b\u044c \u043d\u0430 \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u0430\u0445 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u043b\u0438\u043d\u0438\u0438, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c value-\u0431\u0435\u0442\u0430<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0434\u0443\u043c\u044b\u0432\u0430\u044e \u043e\u0431 open-source \u0432\u0435\u0440\u0441\u0438\u0438 \u043d\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430 \u2014 \u0442\u0430\u043a\u0438\u0445 \u043a\u0435\u0439\u0441\u043e\u0432 \u0435\u0449\u0451 \u043c\u043d\u043e\u0433\u043e<\/p>\n<\/li>\n<\/ul>\n<hr\/>\n<h4>\u0412\u044b\u0432\u043e\u0434<\/h4>\n<p>\u041d\u0430 \u0441\u0442\u0430\u0440\u0442\u0435 \u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e <a href=\"http:\/\/raceodds.net\" rel=\"noopener noreferrer nofollow\">raceodds.net<\/a> \u2014 \u044d\u0442\u043e \u043a\u0443\u0447\u0430 \u043d\u0435\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0448\u0443\u043c\u0430. \u041d\u043e \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0438\u0442\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0443\u0441\u0438\u043b\u0438\u0439 (\u0438 \u043c\u043d\u043e\u0433\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438), \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u043f\u043e\u0442\u043e\u043a \u0432 \u043c\u043e\u0449\u043d\u044b\u0439 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0434\u043b\u044f \u0441\u043f\u043e\u0440\u0442\u0438\u0432\u043d\u043e\u0439 \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0438.<\/p>\n<p>\u0413\u043b\u0430\u0432\u043d\u043e\u0435 \u2014 \u043d\u0435 \u0431\u043e\u044f\u0442\u044c\u0441\u044f \u0433\u0440\u044f\u0437\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445. \u041e\u043d\u0438 \u2014 \u043a\u0430\u043a \u0440\u0443\u0434\u0430. \u041f\u043e\u043a\u0430 \u043d\u0435 \u043f\u0435\u0440\u0435\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0448\u044c \u2014 \u0437\u043e\u043b\u043e\u0442\u0430 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/930020\/\"> https:\/\/habr.com\/ru\/articles\/930020\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-468227","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/468227","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=468227"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/468227\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=468227"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=468227"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=468227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}