Skip to main content

Posts

Showing posts from March, 2016

facebook: Notes from the fields

IIS: Add MINE Type

Web font .woff2 IIS: add .woff2 font .json IIS: add .json extension file

Powershell: How to get alexa rank for a specific domain

Get alexa rank for practicehabits.net with powershell http://data.alexa.com/data?cli=10&url=practicehabits.net # Description: Get alexa rank for a specific $domain # Created by:  Tuyen Dang # Created on: 20160319 # Last modified by: # Last modified on: # History: $domain = "practicehabits.net" $LogDir = "C:\Temp\" $url = "http://data.alexa.com/data?cli=10&url=" + $domain # $start_time = Get-Date $TodayLong = $todaylong = get-date -Format yyyyMMddHHmmss $output = $LogDir + "alexa-" + $domain + "-" + $TodayLong + ".xml" Invoke-WebRequest -Uri $url -OutFile $output # Write-Output "Time taken: $((Get-Date).Subtract($start_time).Seconds) second(s)" # End of script Result <?xml version="1.0" encoding="UTF-8"?> <!-- Need more Alexa data?  Find our APIs here: https://aws.amazon.com/alexa/ --> <ALEXA VER="0.9" URL="practicehabits.net/