NEWS
Parser: TV-Sender Fußball [Closed]
-
@oliverio Vielen Dank für die ausführliche Beschreibung.
Dann schaue ich mir Pupeteer mal genauer an und Selenium über Python steht auch auf meiner Liste. -
@adsfa
pupeteer ist direkt für nodejs und macht mehr oder weniger genau das selbe wie selenium.
es sind aber beide keine easy benutzerprogramme sondern erfordern jeweils programmier skills, sonst kannst damit nicht wirklich was anfangenHallo,
Ist schon etwas älter das Thema aber ich habe das JS ja von hier und vielleicht ist dies dann so einfacher.
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 :anguished:
bei den oberen beiden Zeilen ist jetzt auch eine rote "welle" drunter also denke ich das es damit irgend wie zusammen hängt

im Adapter ist auch noch alles eingetragen

Ich habe auch schon ein altes Backup installiert aber aber auch da geht es nicht :(
Kann mir da jemand weiter helfen den ich fand es recht nützlich nicht immer suchen zu müssen auf welchem Portal man sich das Fussball spiel anschauen kann !
mfg
Digi-Bit
-
Hallo,
Ist schon etwas älter das Thema aber ich habe das JS ja von hier und vielleicht ist dies dann so einfacher.
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 :anguished:
bei den oberen beiden Zeilen ist jetzt auch eine rote "welle" drunter also denke ich das es damit irgend wie zusammen hängt

im Adapter ist auch noch alles eingetragen

Ich habe auch schon ein altes Backup installiert aber aber auch da geht es nicht :(
Kann mir da jemand weiter helfen den ich fand es recht nützlich nicht immer suchen zu müssen auf welchem Portal man sich das Fussball spiel anschauen kann !
mfg
Digi-Bit
Der Anbieter hatte leichte Änderungen an seiner Seite vorgenommen
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(2) > tbody > tr.cabeceraTabla > td').text(); let uhr = $('#utcRelativeContent > table:nth-child(2) > tbody > tr:nth-child(2) > td.hora').text(); let lokal = $('#utcRelativeContent > table:nth-child(2) > tbody > tr:nth-child(2) > td.local > span').text(); let visitor = $('#utcRelativeContent > table:nth-child(2) > tbody > tr:nth-child(2) > td.visitante span').text(); let tv = $('#utcRelativeContent > table:nth-child(2) > 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(); -
Der Anbieter hatte leichte Änderungen an seiner Seite vorgenommen
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(2) > tbody > tr.cabeceraTabla > td').text(); let uhr = $('#utcRelativeContent > table:nth-child(2) > tbody > tr:nth-child(2) > td.hora').text(); let lokal = $('#utcRelativeContent > table:nth-child(2) > tbody > tr:nth-child(2) > td.local > span').text(); let visitor = $('#utcRelativeContent > table:nth-child(2) > tbody > tr:nth-child(2) > td.visitante span').text(); let tv = $('#utcRelativeContent > table:nth-child(2) > 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();@oliverio sagte in Parser: TV-Sender Fußball [Closed]:
Der Anbieter hatte leichte Änderungen an seiner Seite vorgenommen
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(2) > tbody > tr.cabeceraTabla > td').text(); let uhr = $('#utcRelativeContent > table:nth-child(2) > tbody > tr:nth-child(2) > td.hora').text(); let lokal = $('#utcRelativeContent > table:nth-child(2) > tbody > tr:nth-child(2) > td.local > span').text(); let visitor = $('#utcRelativeContent > table:nth-child(2) > tbody > tr:nth-child(2) > td.visitante span').text(); let tv = $('#utcRelativeContent > table:nth-child(2) > 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();Hallo,
Ahhh, danke erstmal aber leider wird der "lokal " nicht angezeigt, kannst du da noch was machen ?
mfg
Digi-Bit
-
@oliverio sagte in Parser: TV-Sender Fußball [Closed]:
Der Anbieter hatte leichte Änderungen an seiner Seite vorgenommen
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(2) > tbody > tr.cabeceraTabla > td').text(); let uhr = $('#utcRelativeContent > table:nth-child(2) > tbody > tr:nth-child(2) > td.hora').text(); let lokal = $('#utcRelativeContent > table:nth-child(2) > tbody > tr:nth-child(2) > td.local > span').text(); let visitor = $('#utcRelativeContent > table:nth-child(2) > tbody > tr:nth-child(2) > td.visitante span').text(); let tv = $('#utcRelativeContent > table:nth-child(2) > 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();Hallo,
Ahhh, danke erstmal aber leider wird der "lokal " nicht angezeigt, kannst du da noch was machen ?
mfg
Digi-Bit
dann so
@digi-bit sagte in Parser: TV-Sender Fußball [Closed]:
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(2) > tbody > tr.cabeceraTabla > td').text(); let uhr = $('#utcRelativeContent > table:nth-child(2) > tbody > tr:nth-child(2) > td.hora').text(); let lokal = $('#utcRelativeContent > table:nth-child(2) > tbody > tr:nth-child(2) > td.local span').text(); let visitor = $('#utcRelativeContent > table:nth-child(2) > tbody > tr:nth-child(2) > td.visitante span').text(); let tv = $('#utcRelativeContent > table:nth-child(2) > 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();