~$ curl http://www.civicdata.com/api/action/package_list
~$ curl http://www.civicdata.com/api/action/package_show?id={package_id}
~$ curl http://www.civicdata.com/api/storage/auth/form/testdata/test.csv -H "Authorization: <API-KEY>"
| const puppeteer = require('puppeteer'); | |
| (async () => { | |
| const search_string = 'google scraper'; | |
| const resultsObj = {search_term: search_string, results:[]}; | |
| const browser = await puppeteer.launch(); | |
| const page = await browser.newPage(); | |
| await page.goto('https://google.com'); |
| license: mit |
| <html> | |
| <head> | |
| <script> | |
| function generateKey(alg, scope) { | |
| return new Promise(function(resolve) { | |
| var genkey = crypto.subtle.generateKey(alg, true, scope) | |
| genkey.then(function (pair) { | |
| resolve(pair) | |
| }) | |
| }) |