• úvod
  • témata
  • události
  • tržiště
  • diskuze
  • nástěnka
  • přihlásit
    registrace
    ztracené heslo?
    OVERDRIVEOVERDRIVE, nejlepsi pritel sama sebe: „Nech si zdát o spaní“
    LAUNCHER
    LAUNCHER --- ---
    OVERDRIVE: V Doom Eternal je brokovnice dvojka i "pumpa".

    Zdroj: Dohrano :-)
    GILHAD
    GILHAD --- ---
    lastUpdate : 2020-03-29T14:25:00+02:00
    tested : 40700
    infected : 2697
    recovered : 11
    died : 13
    r : 1.5
    GILHAD
    GILHAD --- ---
    lastUpdate : 2020-03-29T06:30:00+02:00
    tested : 40700
    infected : 2663
    recovered : 11
    died : 11
    r : 1.6
    ============================
    lastUpdate : 2020-03-29T10:25:00+02:00
    tested : 40700
    infected : 2669
    recovered : 11
    died : 13
    r : 1.5
    ============================
    nevim, jak to R pocitaji, za posledni 4 hodiny se zmenil jen pocet mrtvych a R ...
    (ze by s tim meli zahybat 2 mrtvi se mi moc nezda)
    GILHAD
    GILHAD --- ---
    GILHAD: Všechno špatně, zpátky na stromy!

    Oni tam maji nejaky vzor, ktery updatujou skriptem, takze pojďme ke kořenům:

    wget -q -O - https://trending.seznam.cz/covid19


    {"lastUpdate":"2020-03-29T06:30:00+02:00","tested":36374,"infected":2663,"recovered":11,"died":11,"r":1.6}


    případně

    wget -q -O - https://trending.seznam.cz/covid19|sed 's/[{}"]//g;s/,/\r\n/g'|sed 's/:/ : /;'

    lastUpdate : 2020-03-29T06:30:00+02:00
    tested : 36374
    infected : 2663
    recovered : 11
    died : 11
    r : 1.6
    
    GILHAD
    GILHAD --- ---
    OVERDRIVE:

    Jeste jednou a lip

    wget -q -O - https://share.seznam.cz/static-content/zpravy/5e76362550071b6210664f1b |sed 's/<span/\r\n\0/g'|grep 'id="reproduction-num"\|id="tested"\|id="infected"\|id="recovered"\|id="died"'|sed 's@.*id="\([^"]*\)"[^>]*>\([, 0-9]*\)</.*@\1 : \2@' 
    



    a spoustet v rozumnych intervalech (z cronu, skriptu, ....)

    napr.
    #!/bin/bash
    interval=$(( 1 * 60 * 60 ))   # pocet sekund = 1 * 60 * 60 = 1 hodina (plus cas na ten wget a zbytek skriptu)
    while true; do
      date  '+%Y.%m.%d %H:%I:%S'
      wget -q -O - https://share.seznam.cz/static-content/zpravy/5e76362550071b6210664f1b |sed 's/<span/\r\n\0/g'|grep 'id="reproduction-num"\|id="tested"\|id="infected"\|id="recovered"\|id="died"'|sed 's@.*id="\([^"]*\)"[^>]*>\([, 0-9]*\)</.*@\1 : \2@'
      echo '====================='
      sleep ${interval}
    done 
    


    s vysledkem

    2020.03.29 03:03:58
    reproduction-num : 1,6
    tested : 36 374
    infected : 2 541
    recovered : 11
    died : 11
    ===================== 
    


    Jen doufam, ze ten iframe generuji dynamicky pod stejnym jmenem, ale to zjistim az zitra, zda tam budou nove hodnoty, jinak bych musel tahat i jeho jmeno
    GILHAD
    GILHAD --- ---
    GILHAD: (ehm, ty XXX tam byt nemusi, je to pozustatek po ladeni, ale nicemu nevadi)
    GILHAD
    GILHAD --- ---
    OVERDRIVE:
    
    wget -q -O - https://share.seznam.cz/static-content/zpravy/5e76362550071b6210664f1b |sed 's/<span/\r\n\0 XXX/g'|grep 'id="reproduction-num"\|id="tested"\|id="infected"\|id="recovered"\|id="died"'|sed 's@.*id="\([^"]*\)".*>\([, 0-9]*\)</.*@\1 : \2@'
    


    a spoustet v rozumnych intervalech (z cronu, skriptu, ....)

    napr.

    #!/bin/bash
    interval=$(( 1 * 60 * 60 ))   # pocet sekund = 1 * 60 * 60 = 1 hodina (plus cas na ten wget a zbytek skriptu)
    while true; do
      date  '+%Y.%m.%d %H:%I:%S'
      wget -q -O - https://share.seznam.cz/static-content/zpravy/5e76362550071b6210664f1b |sed 's/<span/\r\n\0 XXX/g'|grep 'id="reproduction-num"\|id="tested"\|id="infected"\|id="recovered"\|id="died"'|sed 's@.*id="\([^"]*\)".*>\([, 0-9]*\)</.*@\1 : \2@'
      echo '====================='
      sleep ${interval}
    done
    

    
    2020.03.29 03:03:58
    reproduction-num : 1,6
    tested : 36 374
    infected : 2 541
    recovered : 11
    died : 11
    =====================
    

    Jen doufam, ze ten iframe generuji dynamicky pod stejnym jmenem, ale to zjistim az zitra, zda tam budou nove hodnoty, jinak bych musel tahat i jeho jmeno
    OVERDRIVE
    OVERDRIVE --- ---
    vite co je zajimave? ze jsem uplne bezvyznamny, kdyz tak prochazim myslenkove svuj audit, ktery povazuju za milovane ditko internetove komunikace.

    dobrou noc
    OVERDRIVE
    OVERDRIVE --- ---
    OVERDRIVE: E ... dopln jedle stromy, pokud dokazes.... jsem uz hrozne utahany....
    OVERDRIVE
    OVERDRIVE --- ---
    ukradeno id E, ona vi...
    >



    OVERDRIVE
    OVERDRIVE --- ---
    OVERDRIVE
    OVERDRIVE --- ---
    Co ten shadowrun? nezkusime zahrat?
    OVERDRIVE
    OVERDRIVE --- ---

    na Adelajka + Overdirve svatbu prijit....

    3 hlasy od 3 respondentů

      OVERDRIVE
      OVERDRIVE --- ---
      @gilhad: nechce se ti dopsat kus scriptu ze seznam tv nebo co, jak tam maji ty pocty testu a mozne R? neco co si muzu vyblejt do fail -f? me se nepodarilo najit, jak to vyrabej... ale prava venoval jsem tomu asi 20s.... sorry... snazim se jit ven, dnes jsem vymyslel vylet do opustenych fabrik, a kupodivu to jsou furt opustene fabriky. tak nabizim hack: pokud chcete nekde byt sami, vlezte do nejakych rozborenych domu, furt tam nikdo jinej neni [a nesirte za kazdou cenu co pisu tady, kdo je tady je tady, jak v tom Acid Testu: kdyz jsi v autobusu, jsi v autobusu]

      spider@anubis:~$ clear; tail -f -n 30 ~/corona_in_time.txt
      =====================
      =====================
      Sun Mar 29 01:30:01 CET 2020
      =====================
      =====================
      COVID-19 : GLOBAL
      Total cases: 662,775
      New cases +: +66,409
      Total deaths: 30,847
      New Deaths +: +3,503
      =====================
      COVID-19 state in : Czechia
      Total cases: 2,631
      New cases: +352
      Total deaths: 11
      =====================
      COVID-19 state in : Slovakia
      Total cases: 292
      New cases: +23
      Total deaths:
      =====================
      COVID-19 state in : USA
      Total cases: 123,351
      New cases: +19,225
      Total deaths: 2,211
      =====================
      COVID-19 state in : HongKong
      Total cases: 560
      New cases: +41
      Total deaths: 4
      OVERDRIVE
      OVERDRIVE --- ---
      OVERDRIVE
      OVERDRIVE --- ---
      aha, dopirucuju si k precteni, ale ted uz se mi neche... dejte si Svicky od Kryla, nebo jeste lepe svicky na stul... do te vzdycky... prvni googleni, ale nechtel bych znova byt v dobe, kdy tohe pojedu se strace, zvlast u pajtnu ve kterym je ted vsecko... diky kluci... ale no rush, ja bych toho nenapsal ani 1/11000000000

      dik

      youtube-dl Troubleshooting: ERROR: This video is unavailable - Ask Ubuntu
      https://askubuntu.com/questions/1200552/youtube-dl-troubleshooting-error-this-video-is-unavailable
      GILHAD
      GILHAD --- ---
      Mozna by mohlo mit vliv tohle:
      youtube-dl version 2018.03.14
      youtube-dl version 2020.02.16
      OVERDRIVE
      OVERDRIVE --- ---
      kurva coze? tohle je jabko???!!!!


      ┬─[petrutom@TMA:~/Desktop]─[00:58:18]
      ╰─>$ youtube-dl -v "https://youtu.be/patRKTtwqJk"
      [debug] System config: []
      [debug] User config: []
      [debug] Custom config: []
      [debug] Command-line args: [u'-v', u'https://youtu.be/patRKTtwqJk']
      [debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
      [debug] youtube-dl version 2020.02.16
      [debug] Python version 2.7.17 (CPython) - Darwin-19.3.0-x86_64-i386-64bit
      [debug] exe versions: ffmpeg 4.2.2, ffprobe 4.2.2, rtmpdump 2.4
      [debug] Proxy map: {}
      [youtube] patRKTtwqJk: Downloading webpage
      [youtube] patRKTtwqJk: Downloading video info webpage
      [debug] Default format spec: bestvideo+bestaudio/best
      WARNING: Requested formats are incompatible for merge and will be merged into mkv.
      [debug] Invoking downloader on u'https://r7---sn-n02xgoxufvg3-2gbl.googlevideo.com/videoplayback?expire=1585461511&ei=p-R_XprNH4yRgQe67rv4Dw&ip=88.81.83.90&id=o-AFFQlvp7tkw9jaxSVbhUyZYXD9dzGYTsPTc_9am-oEKe&itag=135&aitags=133%2C134%2C135%2C160%2C242%2C243%2C244%2C278&source=youtube&requiressl=yes&mh=Z7&mm=31%2C29&mn=sn-n02xgoxufvg3-2gbl%2Csn-2gb7sn7z&ms=au%2Crdu&mv=m&mvi=6&pl=24&initcwndbps=845000&vprv=1&mime=video%2Fmp4&gir=yes&clen=713545&dur=131.142&lmt=1422000965505600&mt=1585439849&fvip=4&keepalive=yes&c=WEB&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=ADKhkGMwQwIgOmO55vO2N9ZtfOM3TVsWvgINhfXa7e2_CodnCS6U5OkCHx9j4LvBf3CLDYvCSjJ5XzmMm2K-Hhnf6TS04ZXk234%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=ABSNjpQwRAIgcbIx4V01sLLA10VehpoE6cTTs9PmeLWaQZZkIb75ycsCIFfuXPo0y0LAMmhMgNvIH1HSiJTukkd09rMGZjiq49h0&ratebypass=yes'
      [download] Destination: Karel Kryl - Svíčky-patRKTtwqJk.f135.mp4
      [download] 100% of 696.82KiB in 00:00
      [debug] Invoking downloader on u'https://r7---sn-n02xgoxufvg3-2gbl.googlevideo.com/videoplayback?expire=1585461511&ei=p-R_XprNH4yRgQe67rv4Dw&ip=88.81.83.90&id=o-AFFQlvp7tkw9jaxSVbhUyZYXD9dzGYTsPTc_9am-oEKe&itag=251&source=youtube&requiressl=yes&mh=Z7&mm=31%2C29&mn=sn-n02xgoxufvg3-2gbl%2Csn-2gb7sn7z&ms=au%2Crdu&mv=m&mvi=6&pl=24&initcwndbps=845000&vprv=1&mime=audio%2Fwebm&gir=yes&clen=2173384&dur=131.321&lmt=1508490464408173&mt=1585439849&fvip=4&keepalive=yes&c=WEB&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=ADKhkGMwRgIhANmMnyDvA0fjsbUOUy8OR6h0yAhzD3efEtm7UEoOebJlAiEAxHFE8ZmBJthoDYTYED1YxLzvyddfwyg9_wVnR-7DLFQ%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=ABSNjpQwRAIgcbIx4V01sLLA10VehpoE6cTTs9PmeLWaQZZkIb75ycsCIFfuXPo0y0LAMmhMgNvIH1HSiJTukkd09rMGZjiq49h0&ratebypass=yes'
      [download] Destination: Karel Kryl - Svíčky-patRKTtwqJk.f251.webm
      [download] 100% of 2.07MiB in 00:01
      [ffmpeg] Merging formats into "Karel Kryl - Svíčky-patRKTtwqJk.mkv"
      [debug] ffmpeg command line: ffmpeg -y -loglevel 'repeat+info' -i 'file:Karel Kryl - Svíčky-patRKTtwqJk.f135.mp4' -i 'file:Karel Kryl - Svíčky-patRKTtwqJk.f251.webm' -c copy -map '0:v:0' -map '1:a:0' 'file:Karel Kryl - Svíčky-patRKTtwqJk.temp.mkv'
      Deleting original file Karel Kryl - Svíčky-patRKTtwqJk.f135.mp4 (pass -k to keep)
      Deleting original file Karel Kryl - Svíčky-patRKTtwqJk.f251.webm (pass -k to keep)
      ┬─[petrutom@TMA:~/Desktop]─[00:58:37]
      ╰─>$
      OVERDRIVE
      OVERDRIVE --- ---
      spider@anubis:~/Desktop$ youtube-dl -v "https://youtu.be/patRKTtwqJk"
      [debug] System config: []
      [debug] User config: []
      [debug] Custom config: []
      [debug] Command-line args: ['-v', 'https://youtu.be/patRKTtwqJk']
      [debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
      [debug] youtube-dl version 2018.03.14
      [debug] Python version 3.6.9 (CPython) - Linux-4.15.0-88-generic-x86_64-with-LinuxMint-19.1-tessa
      [debug] exe versions: none
      [debug] Proxy map: {}
      [youtube] patRKTtwqJk: Downloading webpage
      [youtube] patRKTtwqJk: Downloading video info webpage
      ERROR: patRKTtwqJk: YouTube said: This video is unavailable.
      Traceback (most recent call last):
      File "/usr/lib/python3/dist-packages/youtube_dl/YoutubeDL.py", line 785, in extract_info
      ie_result = ie.extract(url)
      File "/usr/lib/python3/dist-packages/youtube_dl/extractor/common.py", line 440, in extract
      ie_result = self._real_extract(url)
      File "/usr/lib/python3/dist-packages/youtube_dl/extractor/youtube.py", line 1623, in _real_extract
      expected=True, video_id=video_id)
      youtube_dl.utils.ExtractorError: patRKTtwqJk: YouTube said: This video is unavailable.
      OVERDRIVE
      OVERDRIVE --- ---
      PICE! proc kdyz to na jabku jede? proc ne na linuxu? zitra to sjedu s -v ale Nyx by moh vedet... kurvy zle?...

      spider@anubis:~/Desktop$ sudo aptitude install youtube-dl
      [sudo] password for spider:
      The following NEW packages will be installed:
      youtube-dl
      The following packages are RECOMMENDED but will NOT be installed:
      ffmpeg ffmpeg:i386 mplayer mplayer:i386 mpv mpv:i386 phantomjs
      python3-pyxattr python3-xattr rtmpdump
      0 packages upgraded, 1 newly installed, 0 to remove and 24 not upgraded.
      Need to get 931 kB of archives. After unpacking 5 271 kB will be used.
      Get: 1 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 youtube-dl all 2018.03.14-1ubuntu18.04.1 [931 kB]
      Fetched 931 kB in 2s (438 kB/s)
      Selecting previously unselected package youtube-dl.
      (Reading database ... 351070 files and directories currently installed.)
      Preparing to unpack .../youtube-dl_2018.03.14-1ubuntu18.04.1_all.deb ...
      Unpacking youtube-dl (2018.03.14-1ubuntu18.04.1) ...
      Setting up youtube-dl (2018.03.14-1ubuntu18.04.1) ...
      Processing triggers for man-db (2.8.3-2ubuntu0.1) ...

      spider@anubis:~/Desktop$ youtube-dl https://www.youtube.com/watch?v=patRKTtwqJk
      [youtube] patRKTtwqJk: Downloading webpage
      [youtube] patRKTtwqJk: Downloading video info webpage
      ERROR: patRKTtwqJk: YouTube said: This video is unavailable.
      spider@anubis:~/Desktop$ youtube-dl https://www.youtube.com/watch?v=patRKTtwqJk
      [youtube] patRKTtwqJk: Downloading webpage
      [youtube] patRKTtwqJk: Downloading video info webpage
      ERROR: patRKTtwqJk: YouTube said: This video is unavailable.
      spider@anubis:~/Desktop$ youtube-dl https://youtu.be/patRKTtwqJk
      [youtube] patRKTtwqJk: Downloading webpage
      [youtube] patRKTtwqJk: Downloading video info webpage
      ERROR: patRKTtwqJk: YouTube said: This video is unavailable.
      spider@anubis:~/Desktop$
      Kliknutím sem můžete změnit nastavení reklam