Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. JavaScript
    5. Parser: TV-Sender Fußball Keine Daten mehr ....

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Parser: TV-Sender Fußball Keine Daten mehr ....

    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      Digi-Bit last edited by

      Hallo,

      Ich habe das JS von hier:

      https://forum.iobroker.net/topic/57081/parser-tv-sender-fußball-closed/6?_=1708061838822

      Leider bekomme ich damit keine daten mehr, Kann mir vielleicht jemand
      sagen wieso ?

      Ich denke entweder hat sich was an Java geändert bzw an diesen cheerio oder axios ansonst bleibt nur noch
      übrig das der Inhaber der Seite was geändert hat das man dies nicht mehr machen kann.

      const cheerio = require('cheerio');
      const axios = require('axios');
      const dp = "0_userdata.0.test1";
       
      async function getFussball() {
          const response = await axios.get('https://www.fussball-im-tv.com/team/colonia');
          const $ = cheerio.load(response.data);
          let datum = $('#utcRelativeContent > table:nth-child(1) > tbody > tr.cabeceraTabla > td').text();
          let uhr = $('#utcRelativeContent > table:nth-child(1) > tbody > tr:nth-child(2) > td.hora').text();
          let lokal = $('#utcRelativeContent > table:nth-child(1) > tbody > tr:nth-child(2) > td.local > span').text();
          let visitor = $('#utcRelativeContent > table:nth-child(1) > tbody > tr:nth-child(2) > td.visitante > span').text();
          let tv = $('#utcRelativeContent > table:nth-child(1) > tbody > tr:nth-child(2) > td.canales > ul li').toArray().map(el=>$(el).text()).join(", ");
          setState(dp,lokal + " - " + visitor + " | " + datum + " um " + uhr + " | " + tv);
          console.log(lokal + " - " + visitor + " | " + datum + " um " + uhr + " | " + tv);
      }
      getFussball();
       
      
      

      dies funktionier leider nicht mehr 😧

      bei den oberen beiden Zeilen ist jetzt auch eine rote "welle" drunter also denke ich das es damit irgend wie zusammen hängt
      Bild_2024-02-15_174355633.png

      im Adapter ist auch noch alles eingetragen

      Bild_2024-02-15_174554863.png

      Ich habe auch schon ein altes Backup installiert vom November aber auch da geht es nicht 😞

      Hat jemand vielleicht ein Tipp was man da machen kann ?

      mfg

      Digi-Bit

      1 Reply Last reply Reply Quote 0
      • First post
        Last post

      Support us

      ioBroker
      Community Adapters
      Donate

      840
      Online

      31.9k
      Users

      80.1k
      Topics

      1.3m
      Posts

      javascript
      1
      1
      120
      Loading More Posts
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      Community
      Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
      The ioBroker Community 2014-2023
      logo