def get_remote_version():
 gs_page = requests.get(GETTING_STARTED_URL).text
 mdi_download = re.search(DOWNLOAD_LINK, gs_page)
 if (not mdi_download):
  print 'Unable to find download link'
  sys.exit()
 return ('https://materialdesignicons.com' + mdi_download.group(1))

def get_remote_version ( ) : gs_page = requests . get ( GETTING_STARTED_URL ) . text mdi_download = re . search ( DOWNLOAD_LINK , gs_page ) if ( not mdi_download ) : print 'Unable to find download link' sys . exit ( ) return ( 'https://materialdesignicons.com' + mdi_download . group ( 1 ) )
get current version and download link .