Webscrap complex HTML Table | rvest return empty vector











up vote
0
down vote

favorite
1












I could not figure out a solution to my problem and I hope you guys have some ideas:



I am trying to webscrap the table from "https://www.oddsportal.com/soccer/germany/bundesliga/" and I tried using library(rvest) but the return keeps to be empty. I used the following code:



oddsportal <- read_html("https://www.oddsportal.com/soccer/germany/bundesliga/")
oddsportal.node <- html_nodes(oddsportal, css = "#tournamentTable td a")
odds <- oddsportal.node %>% html_text()


I used selectorgadget in order to find the css selector "#tournamentTable td a" but apparently something is wrong there. I have the feeling that the table is quite simple but I could not figure it out...Happy for all ideas to get the table into a neat dataframe.










share|improve this question


















  • 1




    I highly recommend to read their Terms of use, section 5 states: Without prior authorisation in writing from the Provider, Visitors are not authorised to copy, modify, tamper with, distribute, transmit, display, reproduce, transfer, upload, download or otherwise use or alter any of the content of the App. (oddsportal.com/terms) I am not very familiar with this kind of web scapping, but you should look into it again, befor web scrapping.
    – Stephan
    Oct 8 at 17:25















up vote
0
down vote

favorite
1












I could not figure out a solution to my problem and I hope you guys have some ideas:



I am trying to webscrap the table from "https://www.oddsportal.com/soccer/germany/bundesliga/" and I tried using library(rvest) but the return keeps to be empty. I used the following code:



oddsportal <- read_html("https://www.oddsportal.com/soccer/germany/bundesliga/")
oddsportal.node <- html_nodes(oddsportal, css = "#tournamentTable td a")
odds <- oddsportal.node %>% html_text()


I used selectorgadget in order to find the css selector "#tournamentTable td a" but apparently something is wrong there. I have the feeling that the table is quite simple but I could not figure it out...Happy for all ideas to get the table into a neat dataframe.










share|improve this question


















  • 1




    I highly recommend to read their Terms of use, section 5 states: Without prior authorisation in writing from the Provider, Visitors are not authorised to copy, modify, tamper with, distribute, transmit, display, reproduce, transfer, upload, download or otherwise use or alter any of the content of the App. (oddsportal.com/terms) I am not very familiar with this kind of web scapping, but you should look into it again, befor web scrapping.
    – Stephan
    Oct 8 at 17:25













up vote
0
down vote

favorite
1









up vote
0
down vote

favorite
1






1





I could not figure out a solution to my problem and I hope you guys have some ideas:



I am trying to webscrap the table from "https://www.oddsportal.com/soccer/germany/bundesliga/" and I tried using library(rvest) but the return keeps to be empty. I used the following code:



oddsportal <- read_html("https://www.oddsportal.com/soccer/germany/bundesliga/")
oddsportal.node <- html_nodes(oddsportal, css = "#tournamentTable td a")
odds <- oddsportal.node %>% html_text()


I used selectorgadget in order to find the css selector "#tournamentTable td a" but apparently something is wrong there. I have the feeling that the table is quite simple but I could not figure it out...Happy for all ideas to get the table into a neat dataframe.










share|improve this question













I could not figure out a solution to my problem and I hope you guys have some ideas:



I am trying to webscrap the table from "https://www.oddsportal.com/soccer/germany/bundesliga/" and I tried using library(rvest) but the return keeps to be empty. I used the following code:



oddsportal <- read_html("https://www.oddsportal.com/soccer/germany/bundesliga/")
oddsportal.node <- html_nodes(oddsportal, css = "#tournamentTable td a")
odds <- oddsportal.node %>% html_text()


I used selectorgadget in order to find the css selector "#tournamentTable td a" but apparently something is wrong there. I have the feeling that the table is quite simple but I could not figure it out...Happy for all ideas to get the table into a neat dataframe.







html r web-scraping html-table rvest






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Oct 8 at 16:22









xm0riTzx

31




31








  • 1




    I highly recommend to read their Terms of use, section 5 states: Without prior authorisation in writing from the Provider, Visitors are not authorised to copy, modify, tamper with, distribute, transmit, display, reproduce, transfer, upload, download or otherwise use or alter any of the content of the App. (oddsportal.com/terms) I am not very familiar with this kind of web scapping, but you should look into it again, befor web scrapping.
    – Stephan
    Oct 8 at 17:25














  • 1




    I highly recommend to read their Terms of use, section 5 states: Without prior authorisation in writing from the Provider, Visitors are not authorised to copy, modify, tamper with, distribute, transmit, display, reproduce, transfer, upload, download or otherwise use or alter any of the content of the App. (oddsportal.com/terms) I am not very familiar with this kind of web scapping, but you should look into it again, befor web scrapping.
    – Stephan
    Oct 8 at 17:25








1




1




I highly recommend to read their Terms of use, section 5 states: Without prior authorisation in writing from the Provider, Visitors are not authorised to copy, modify, tamper with, distribute, transmit, display, reproduce, transfer, upload, download or otherwise use or alter any of the content of the App. (oddsportal.com/terms) I am not very familiar with this kind of web scapping, but you should look into it again, befor web scrapping.
– Stephan
Oct 8 at 17:25




I highly recommend to read their Terms of use, section 5 states: Without prior authorisation in writing from the Provider, Visitors are not authorised to copy, modify, tamper with, distribute, transmit, display, reproduce, transfer, upload, download or otherwise use or alter any of the content of the App. (oddsportal.com/terms) I am not very familiar with this kind of web scapping, but you should look into it again, befor web scrapping.
– Stephan
Oct 8 at 17:25

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f52706428%2fwebscrap-complex-html-table-rvest-return-empty-vector%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f52706428%2fwebscrap-complex-html-table-rvest-return-empty-vector%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Costa Masnaga

Fotorealismo

Sidney Franklin