Skip to content

Instantly share code, notes, and snippets.

View revivek's full-sized avatar

Vivek Patel revivek

View GitHub Profile
{
"clients":[
{
"features":{
"float":2,
"Responsive":0,
"HSL Colors CSS3":1,
"min-width":2,
"list-style-position":2,
"E[foo^=\"bar\"]":0,
@revivek
revivek / scrape.clj
Last active November 29, 2015 22:48
Clojure scraping of campaignmonitor's email client CSS support
;; Create a JSON representation of campaignmonitor's email CSS support table
;; https://www.campaignmonitor.com/css/
(ns scrape.main
(:require [net.cgrand.enlive-html :as html])
(:require [clojure.data.json :as json])
(:require [clojure.core.matrix :as matrix]))
(def ^:dynamic *base-url* "https://www.campaignmonitor.com/css/")
(def ^:dynamic *feature-names-selector* [:#csstable :tbody :td.element-style])