#!/usr/bin/python

import sys
import string
import os

print "\nScanLife dumper 1.0"
print "Created by Colin Keigher - http://keyboardcowboy.ca"
print "This is an example script, it is not intended for actual use\n\n"

Start = input('Enter a starting value: ')
End = input('Enter an ending value: ')

Total = Start + End

print "\nWill now scan through", Total, "entries.\n"

while (Start < End):
        ScanLifeStr = 'A119A00000000000' + str(hex(Start)).lstrip('0x')
        ScanLifeURL = 'http://app.scanlife.com/resolver/barcoderesolver?barcode=' + ScanLifeStr + '&appid=17007085'
        UnixStr = 'wget -O ' + ScanLifeStr + ' '  + ScanLifeURL
        os.system(UnixStr)
        Start = Start + 1
