Skip to content

Instantly share code, notes, and snippets.

View zapier-carsales-email.js
var webhookUrl = 'PUT YOUR WEBHOOK URL HERE';
var startTag = '<!-- START VEHICLE LISTING -->';
var endTag = '<!-- END VEHICLE LISTING -->';
var urlRegex = new RegExp(/(https?:\/\/[^\s]+)/g);
var titleRegex = new RegExp(/\d\d\d\d\s.*/g);
var listings = findListing(inputData.emailHtml);
var str = findLinks(listings);
taitems / plate-snitch.js
Created Aug 20, 2017
Image processing to identify license plate
View plate-snitch.js
openalpr.IdentifyLicense(imagePath, function (error, output) {
// handle result
taitems / plate-snitch.js
Created Aug 20, 2017
(Extract) Check the status of a vehicle registration and scrape results.
View plate-snitch.js
// Open form and submit enquire for `rego`
function getInfo(rego) {
.userAgent('Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0')
.type('#registration-number-ctrl input[type=text]', rego)
.click('.btn-holder input')
.then(function(body) {
taitems / Console Capture
Created Aug 15, 2011
Prevent console.log()s from causing JS errors
View Console Capture
if (!window.console) {
window.console = {};
window.console.log = function() {
return false;
You can’t perform that action at this time.