Skip to content

Instantly share code, notes, and snippets.

@vdobrev
Created January 2, 2018 22:31
Show Gist options
  • Save vdobrev/2236acb3f5bbb9e5f334aeb78081a214 to your computer and use it in GitHub Desktop.
Save vdobrev/2236acb3f5bbb9e5f334aeb78081a214 to your computer and use it in GitHub Desktop.
# KPI 22. Domain content history
# values: <=2000 (1.2) / 2001-2005 (1.1) / 2006-2010 (1.05) / 2010-2015 (1.025) / 2016+ (1)
# min/max = 1/1.2
require 'domainator'
require 'wayback'
domain = Domainator.parse(url)
Wayback.list(domain).first_date
# only once per domain and store to db!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment