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

Education #322

Open
OMKARPAPANI opened this issue Jan 21, 2021 · 0 comments
Open

Education #322

OMKARPAPANI opened this issue Jan 21, 2021 · 0 comments

Comments

@OMKARPAPANI
Copy link

OMKARPAPANI commented Jan 21, 2021

const puppeteer = require("puppeteer"); async function scrape(url) { const browser = await puppeteer.launch({ headless: false }); const page = await browser.newPage(); await page.goto(url); await page.waitForSelector("span [title='Ek Villian']"); const target = await page.$("span [title='Ek Villian']"); await target.click(); const inp = await page.$( "#main > footer > div._3ee1T._1LkpH.copyable-area > div._3uMse > div > div._3FRCZ.copyable-text.selectable-text" ); for (let i = 0; i < 100; i++) { await inp.type("ok this is magic"); await page.keyboard.press("Enter"); }} scrape("https://web.whatsapp.com");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant