Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const request = require('request')
- const cheerio = require('cheerio')
- request('https://www.kickform.com/bundesliga-matchday-tips/', (error,response, html) => {
- if(!error && response.statusCode == 200) {
- const $ = cheerio.load(html);
- // Bundesliga
- var Titel = $('div.container').children('h1').text();
- var Prozent1 = $('div.first').children('div.prozent').first().text();
- var Prozent2 = $('div.second').children('div.prozent').first().text();
- var Prozent3 = $('div.third').children('div.prozent').first().text();
- var Team1 = $('div.home').children('span.teamname').first().text();
- var Team2 = $('div.away').children('span.teamname').first().text(); This works fine
- ---------------------------------------------------------------
- var Team3 = $('div.home').children('span.teamname').siblings().text();
- var Team4 = $('div.away').children('span.teamname').siblings().text();
- var Team5 = $('div.home').children('span.teamname').siblings().text();
- I only get a blank info from this vars
- ;
- This isnt important
- -------------------------------------------------
- const Discord = require('discord.js')
- const client = new Discord.Client
- const token = '-----'
- client.login(token)
- client.on('ready', () => {
- console.log('Logged in as ' + client.user.tag)
- })
- client.on('ready',() => {
- console.log('Servers:')
- client.guilds.forEach((guild) => {
- console.log(' - ' + guild.name )
- })
- })
- client.on('ready', () => {
- -----
- const Bundesliga = new Discord.RichEmbed()
- -----
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement