(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
const puppeteer = require('puppeteer'); | |
const converter = require('json-2-csv'); | |
const fs = require('fs'); | |
const readline = require('readline'); | |
(async () => { | |
let allListings = []; | |
let offset = 1; | |
while (true) { |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
function getURLParam(name, url){ | |
url = url || location.search; | |
url.startsWith("?") || (url="?"+url); | |
return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(url) || [null, ''])[1].replace(/\+/g, '%20')) || null; | |
} | |
getURLParam("a", "a=AAA&b=BBB&c=CCC"); | |
//AAA | |
getURLParam("ba", "a=AAA&b=BBB&c=CCC"); | |
//null |