1

Is this possible? Scrape a page and get html content, after javascript updates the dom on that page? after 10 seconds or so...

The javascript on the page looks something like:

function renderStatisticsDiv() {
        const container = document.createElement('div');
        container.setAttribute('id', 'statisticsContainer');

        const failureCountElement = document.createElement('p');
        failureCountElement.textContent = `Failure Count: ${statistics.failureCount}`;
        const successCountElement = document.createElement('p');
        successCountElement.textContent = `Success Count: ${statistics.successCount}`;
}

Preferable in python, but in nodejs is fine too!

PS: I tried pyppeteer and selenium driver, but it didn't update the dom when scraping

Oba Api
  • 231
  • 1
  • 3
  • 10

0 Answers0