-3

File "F:\Documents and Settings\Administrateur\cracker.py", line 56 if line.startswith('

  • My codes :

    if system() == 'Linux':
      banner()
      f = open('/tmp/data.txt', 'rU')
      for line in f:
        if line.startswith('<li><a') == True:
          m = re.search(r'(<a href=")(.+[^>])(">)', line)
          i += 1
          local_name = '%s/file%d.txt' % (fout, i)
          print 'Retrieving...\t\t', site + m.group(2)
          try:  urllib.urlretrieve(site + m.group(2), local_name)
          except IOError:
            print '\n[%s] doesn\'t exist, create it first' % fout
            sys.exit()
        if line.startswith('<img') == True:
          m1 = re.search(r'(<a href=")(.+[^>])(">)', line)
          i += 1
          local_name = '%s/file%d.txt' % (fout, i)
          print 'Retrieving...\t\t', site + m1.group(2)
          try:  urllib.urlretrieve(site + m1.group(2), local_name)
          except IOError:
            print '\n[%s] doesn\'t exist, create it first' % fout
            sys.exit()
    
  • MEhdi MEhdi
    • 1
    • 1
    • 1
  • 1
    possible duplicate of ["inconsistent use of tabs and spaces in indentation"](http://stackoverflow.com/questions/5685406/inconsistent-use-of-tabs-and-spaces-in-indentation) – JAL Jun 12 '15 at 15:49
  • 1
    @MEhdiMEhdi we know the error and we're telling you how to fix it – heinst Jun 12 '15 at 15:49
  • Possible correction code – MEhdi MEhdi Jun 12 '15 at 15:52
  • Possible duplicate of [TabError: inconsistent use of tabs and spaces in indentation - Integration MailChimp Django](https://stackoverflow.com/questions/56193730/taberror-inconsistent-use-of-tabs-and-spaces-in-indentation-integration-mailc) – Eric Jin May 17 '19 at 22:08