Skip to content

Instantly share code, notes, and snippets.

View aonic's full-sized avatar

Raja Kapur aonic

  • AWS
  • Seattle, WA
View GitHub Profile
@nojvek
nojvek / side_by_side_urls.js
Created January 14, 2020 18:41
Loading two urls side by side.
/*
* 1) Install Chrome Split Tabs plugin: https://chrome.google.com/webstore/detail/split-tabs/mamepagkigmnpoalafajabnljlkkocbk
* 2) Run `/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222`
* 3) Load two about:blank tabs side by side when chrome starts
* 4) Start QuickTime and record screen with the two chrome tabs side by side
* 5) Run `node side_by_side_urls.js`, which loads two urls in both tabs simultaneously
*/
const puppeteer = require(`puppeteer`);
const fetch = require(`node-fetch`);
@madjar
madjar / scrapper.py
Last active March 5, 2023 15:02
A example of scrapper using asyncio and aiohttp
import asyncio
import aiohttp
import bs4
import tqdm
@asyncio.coroutine
def get(*args, **kwargs):
response = yield from aiohttp.request('GET', *args, **kwargs)
return (yield from response.read_and_close(decode=True))