updating data
This commit is contained in:
19
src/help.txt
19
src/help.txt
@@ -42,6 +42,19 @@ u039k20a
|
||||
039K20A and 032
|
||||
039K20A, 011L20
|
||||
|
||||
git checkout pages
|
||||
git merge main
|
||||
git push
|
||||
Diesen Befehl ausfüren:
|
||||
jupyter nbconvert --to notebook --execute /home/frankknoll/Dokumente/Corona/projects/HowBadIsMyBatch-publish/src/intensivstationen/Intensivstationen.ipynb
|
||||
|
||||
man 5 fcrontab
|
||||
|
||||
fcrontab -e
|
||||
SHELL=/bin/bash
|
||||
|
||||
@ 3 /home/frankknoll/.local/bin/jupyter nbconvert --to notebook --execute /home/frankknoll/Dokumente/Corona/projects/HowBadIsMyBatch-publish/src/intensivstationen/Intensivstationen.ipynb
|
||||
@ 2 /home/frankknoll/.local/bin/jupyter nbconvert --to notebook --execute /home/frankknoll/Dokumente/Corona/projects/HowBadIsMyBatch-publish/src/tmp/test.ipy>
|
||||
@ 1 echo "Hello" >>/tmp/tst.txt
|
||||
|
||||
fcrontab -l
|
||||
|
||||
systemctl status fcron
|
||||
tail -f /var/log/syslog
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
"from datetime import datetime\n",
|
||||
"from time import sleep\n",
|
||||
"from selenium import webdriver\n",
|
||||
"from selenium.webdriver.firefox.options import Options\n",
|
||||
"\n",
|
||||
"class DateProvider:\n",
|
||||
" \n",
|
||||
@@ -67,7 +68,9 @@
|
||||
" return self.lastUpdatedOriginal\n",
|
||||
"\n",
|
||||
" def _getOriginalHtml(self):\n",
|
||||
" driver = webdriver.Firefox()\n",
|
||||
" options = Options()\n",
|
||||
" options.headless = True\n",
|
||||
" driver = webdriver.Firefox(options = options)\n",
|
||||
" driver.get('https://www.intensivregister.de/#/aktuelle-lage/downloads')\n",
|
||||
" sleep(10)\n",
|
||||
" innerHTML = driver.execute_script(\"return document.body.innerHTML\")\n",
|
||||
@@ -396,6 +399,7 @@
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"def publish():\n",
|
||||
" %cd /home/frankknoll/Dokumente/Corona/projects/HowBadIsMyBatch-publish\n",
|
||||
" ! git add -A\n",
|
||||
" ! git commit -m \"updating data\"\n",
|
||||
" ! git push"
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user