{
  "id": 134426,
  "title": "A simple script to monitor your submission completion",
  "url": "/competitions/deepfake-detection-challenge/discussion/134426",
  "author_name": "",
  "post_date": "2020-03-08T03:30:50.522393200Z",
  "votes": 11,
  "comment_count": 3,
  "views": 0,
  "content": "<p>As the submissions in this competition are very lengthy and there is no way whatsoever to get notifications from kaggle when they complete, I wrote the following script that sends you a telegram message upon the completion of your submission. the message include the scoring.\nRemember to replace YOUR_... with your actual token/user</p>\n\n<p>EDIT: i just noticed that this script is using pushover and not telegram. I tried both... </p>\n\n<p>```</p>\n\n<h1>!/bin/sh</h1>\n\n<p>d=\"\"\nkaggle competitions submissions -q deepfake-detection-challenge &gt; tmp.old\nwhile [ \"$d\" = \"\" ]\ndo\n        kaggle competitions submissions -q deepfake-detection-challenge &gt; tmp.new\n        d=<code>diff tmp.new tmp.old</code>\n        sleep 30\ndone</p>\n\n<p>echo $d</p>\n\n<p>curl -s \\\n  --form-string \"token=YOUR_TELEGRAM_TOKEN\" \\\n  --form-string \"user=YOUR_TELEGRAM_USER\" \\\n  --form-string \"message=submission finished $d\" \\\n  <a href=\"https://api.pushover.net/1/messages.json\">https://api.pushover.net/1/messages.json</a>\n```</p>",
  "messages": [
    {
      "id": "766353",
      "postDate": "03/08/2020 03:30:50",
      "content": "<p>As the submissions in this competition are very lengthy and there is no way whatsoever to get notifications from kaggle when they complete, I wrote the following script that sends you a telegram message upon the completion of your submission. the message include the scoring.\nRemember to replace YOUR_... with your actual token/user</p>\n\n<p>EDIT: i just noticed that this script is using pushover and not telegram. I tried both... </p>\n\n<p>```</p>\n\n<h1>!/bin/sh</h1>\n\n<p>d=\"\"\nkaggle competitions submissions -q deepfake-detection-challenge &gt; tmp.old\nwhile [ \"$d\" = \"\" ]\ndo\n        kaggle competitions submissions -q deepfake-detection-challenge &gt; tmp.new\n        d=<code>diff tmp.new tmp.old</code>\n        sleep 30\ndone</p>\n\n<p>echo $d</p>\n\n<p>curl -s \\\n  --form-string \"token=YOUR_TELEGRAM_TOKEN\" \\\n  --form-string \"user=YOUR_TELEGRAM_USER\" \\\n  --form-string \"message=submission finished $d\" \\\n  <a href=\"https://api.pushover.net/1/messages.json\">https://api.pushover.net/1/messages.json</a>\n```</p>",
      "rawMarkdown": "As the submissions in this competition are very lengthy and there is no way whatsoever to get notifications from kaggle when they complete, I wrote the following script that sends you a telegram message upon the completion of your submission. the message include the scoring.\nRemember to replace YOUR_... with your actual token/user\n\nEDIT: i just noticed that this script is using pushover and not telegram. I tried both... \n\n```\n#!/bin/sh\nd=\"\"\nkaggle competitions submissions -q deepfake-detection-challenge &gt; tmp.old\nwhile [ \"$d\" = \"\" ]\ndo\n        kaggle competitions submissions -q deepfake-detection-challenge &gt; tmp.new\n        d=`diff tmp.new tmp.old`\n        sleep 30\ndone\n\necho $d\n\ncurl -s \\\n  --form-string \"token=YOUR_TELEGRAM_TOKEN\" \\\n  --form-string \"user=YOUR_TELEGRAM_USER\" \\\n  --form-string \"message=submission finished $d\" \\\n  https://api.pushover.net/1/messages.json\n```",
      "votes": null
    },
    {
      "id": "766354",
      "postDate": "03/08/2020 03:34:34",
      "content": "<p>Such a useful script 👍. Thanks for sharing, <a href=\"/moshel\">@moshel</a>!</p>",
      "rawMarkdown": "Such a useful script 👍. Thanks for sharing, @moshel!",
      "votes": null
    },
    {
      "id": "766355",
      "postDate": "03/08/2020 03:35:52",
      "content": "<p>if you get error from the kaggle api, this means they havent fixed the fixed the error I reported 24 days ago...\nedit  dist-packages/kaggle/models/kaggle_models_extended.py:45 to:\n<code>\ntry:\n    self.size = File.get_size(self.totalBytes)\nexcept:\n    self.size = 0\n</code></p>",
      "rawMarkdown": "if you get error from the kaggle api, this means they havent fixed the fixed the error I reported 24 days ago...\nedit  dist-packages/kaggle/models/kaggle_models_extended.py:45 to:\n```\ntry:\n    self.size = File.get_size(self.totalBytes)\nexcept:\n    self.size = 0\n```",
      "votes": null
    },
    {
      "id": "824697",
      "postDate": "04/28/2020 14:40:59",
      "content": "<p>Inspired by your idea and importance of such a feature I've created simple python script that uses Telegram and Kaggle APIs to send notifications about submissions updates.</p>\n\n<p><a href=\"https://github.com/vladostan/kaggle-telegram-notifier\">GitHub repository</a></p>",
      "rawMarkdown": "Inspired by your idea and importance of such a feature I've created simple python script that uses Telegram and Kaggle APIs to send notifications about submissions updates.\n\n[GitHub repository](https://github.com/vladostan/kaggle-telegram-notifier)",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 766354,
      "author_name": "phunghieu",
      "author_url": "",
      "post_date": "03/08/2020 03:34:34",
      "content": "<p>Such a useful script 👍. Thanks for sharing, <a href=\"/moshel\">@moshel</a>!</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 766355,
      "author_name": "moshel",
      "author_url": "",
      "post_date": "03/08/2020 03:35:52",
      "content": "<p>if you get error from the kaggle api, this means they havent fixed the fixed the error I reported 24 days ago...\nedit  dist-packages/kaggle/models/kaggle_models_extended.py:45 to:\n<code>\ntry:\n    self.size = File.get_size(self.totalBytes)\nexcept:\n    self.size = 0\n</code></p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 824697,
      "author_name": "vostankovich",
      "author_url": "",
      "post_date": "04/28/2020 14:40:59",
      "content": "<p>Inspired by your idea and importance of such a feature I've created simple python script that uses Telegram and Kaggle APIs to send notifications about submissions updates.</p>\n\n<p><a href=\"https://github.com/vladostan/kaggle-telegram-notifier\">GitHub repository</a></p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "766353": "As the submissions in this competition are very lengthy and there is no way whatsoever to get notifications from kaggle when they complete, I wrote the following script that sends you a telegram message upon the completion of your submission. the message include the scoring.\nRemember to replace YOUR_... with your actual token/user\n\nEDIT: i just noticed that this script is using pushover and not telegram. I tried both... \n\n```\n#!/bin/sh\nd=\"\"\nkaggle competitions submissions -q deepfake-detection-challenge &gt; tmp.old\nwhile [ \"$d\" = \"\" ]\ndo\n        kaggle competitions submissions -q deepfake-detection-challenge &gt; tmp.new\n        d=`diff tmp.new tmp.old`\n        sleep 30\ndone\n\necho $d\n\ncurl -s \\\n  --form-string \"token=YOUR_TELEGRAM_TOKEN\" \\\n  --form-string \"user=YOUR_TELEGRAM_USER\" \\\n  --form-string \"message=submission finished $d\" \\\n  https://api.pushover.net/1/messages.json\n```",
    "766354": "Such a useful script 👍. Thanks for sharing, @moshel!",
    "766355": "if you get error from the kaggle api, this means they havent fixed the fixed the error I reported 24 days ago...\nedit  dist-packages/kaggle/models/kaggle_models_extended.py:45 to:\n```\ntry:\n    self.size = File.get_size(self.totalBytes)\nexcept:\n    self.size = 0\n```",
    "824697": "Inspired by your idea and importance of such a feature I've created simple python script that uses Telegram and Kaggle APIs to send notifications about submissions updates.\n\n[GitHub repository](https://github.com/vladostan/kaggle-telegram-notifier)"
  },
  "source": "meta"
}