Projects STRLCPY cupp Commits bd62d47f
🤬
  • ■ ■ ■ ■ ■ ■
    cupp.py
    skipped 576 lines
    577 577   if os.path.isfile('alectodb.csv.gz') == 0:
    578 578   print("[+] Downloading alectodb.csv.gz...")
    579 579   webFile = urllib.request.urlopen(url)
    580  - localFile = open(url.split('/')[-1], 'w')
     580 + localFile = open(url.split('/')[-1], 'wb')
    581 581   localFile.write(webFile.read())
    582 582   webFile.close()
    583 583   localFile.close()
    584 584   
    585 585   
    586  - f = gzip.open('alectodb.csv.gz', 'rb')
     586 + f = gzip.open('alectodb.csv.gz', 'rt')
    587 587   
    588 588   data = csv.reader(f)
    589 589   
    skipped 1285 lines
Please wait...
Page is in error, reload to recover