Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Puppeteer Crawler #484

Open
dherges opened this issue Aug 12, 2019 · 0 comments
Open

Puppeteer Crawler #484

dherges opened this issue Aug 12, 2019 · 0 comments

Comments

@dherges
Copy link
Contributor

dherges commented Aug 12, 2019

https://try-puppeteer.appspot.com/

const browser = await puppeteer.launch();

const page = await browser.newPage();

await page.goto('https://seekingalpha.com/symbol/SU/dividends/history');

//await page.screenshot({path: 'example.png'});

await page.waitForSelector('table.dividend-history');

const result = await page.evaluate(() => document.querySelector('table.dividend-history').innerHTML)

console.log(result);

await browser.close();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant