Created
January 2, 2018 22:31
-
-
Save vdobrev/2236acb3f5bbb9e5f334aeb78081a214 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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