This is a script picking winners for a contest where:
- every winning entry has to mention one other twitter account in a reply
- double winners are allowed
You'll need a few things installed:
- jq
- twarc
- boxes
// using https://try-puppeteer.appspot.com/ | |
const browser = await puppeteer.launch(); | |
const page = await browser.newPage(); | |
await page.setViewport({width: 1500, height: 3000, deviceScaleFactor: 4}); | |
await page.goto('https://twitter.com/arvidkahl/status/1375476092853743621?s=20'); | |
await page.waitForNavigation({ waitUntil: 'networkidle2' }) | |
console.log(await page.content()); | |
await page.screenshot({path: 'screenshot.png'}); |
This is a script picking winners for a contest where:
You'll need a few things installed: