Skip to content

partial scrape not working #21

@conncampbell

Description

@conncampbell

commands:
python scraper.py -pisize -l -minscore 100 -v -f -P 0
or
python scraper.py -pisize -l -minscore 100 -v -f -P amiga
or
python scraper.py -pisize -l -minscore 100 -v -f -p

fail with:

Scanning systems: amiga
Traceback (most recent call last):
File "scraper.py", line 738, in
scanFiles(v)
File "scraper.py", line 493, in scanFiles
name = SystemInfo[0]
TypeError: 'int' object has no attribute 'getitem'

Patch:

print "Partial scraping enabled."
for i,v in enumerate(args.P):
try: # if the argument was an integer
scan_systems.append(ES_systems[int(v)]) # here
scan_systems_names.append(ES_systems[int(v)][0])
except:
# search system by name
for key,val in enumerate(ES_systems):
if (v==val[0]):
scan_systems.append(val[0]) # and here
scan_systems_names.append(val[0])
print "Scanning systems: %s" % (', '.join(scan_systems_names))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions