Skip to content

Instantly share code, notes, and snippets.

@Aaron1011
Created March 24, 2017 23:51
Show Gist options
  • Save Aaron1011/d719a84389381631c3cafb14bf848b46 to your computer and use it in GitHub Desktop.
Save Aaron1011/d719a84389381631c3cafb14bf848b46 to your computer and use it in GitHub Desktop.
import requests
import difflib
versions = [
"0.1",
"0.2",
"0.3",
"0.4",
"0.5",
"0.6",
"0.7",
"0.8",
"0.9",
"0.10",
"0.11.0",
"0.12.0",
"1.0.0-alpha",
"1.0.0-alpha.2",
"1.0.0-beta", "1.0.0-alpha.2",
"1.0.0",
"1.1.0",
"1.2.0",
"1.3.0",
"1.4.0",
"1.5.0",
"1.6.0",
"1.7.0",
"1.8.0",
"1.9.0",
"1.10.0",
"1.11.0",
"1.12.0",
"1.12.1",
"1.13.0",
"1.14.0",
"1.15.0",
"1.15.1",
"1.16.0"]
for ver in versions:
real = requests.get("http://localhost:2000/rust/%s" % ver).text
local = requests.get("http://localhost:1337/rust/%s" % ver).text
diff = difflib.unified_diff(real.split('\n'),local.split('\n'))
lines = [x for x in diff]
print("Version : %s" % ver)
if len(lines) != 0:
for line in lines:
print(line)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment