|
@@ -10,11 +10,11 @@ def main(argv): |
|
|
try:
|
|
|
try:
|
|
|
opts, args = getopt.getopt(argv,"hi:o:",["ifile=","ofile="])
|
|
|
opts, args = getopt.getopt(argv,"hi:o:",["ifile=","ofile="])
|
|
|
except getopt.GetoptError:
|
|
|
except getopt.GetoptError:
|
|
|
print ('spotitube.py -i <Search Keyword> -o <Index>')
|
|
|
|
|
|
|
|
|
print ('scrape.py -i <Search Keyword> -o <Index>')
|
|
|
sys.exit(2)
|
|
|
sys.exit(2)
|
|
|
for opt, arg in opts:
|
|
|
for opt, arg in opts:
|
|
|
if opt == '-h':
|
|
|
if opt == '-h':
|
|
|
print ('spotitube.py -i <Search Keyword> -o <Index>')
|
|
|
|
|
|
|
|
|
print ('scrape.py -i <Search Keyword> -o <Index>')
|
|
|
sys.exit()
|
|
|
sys.exit()
|
|
|
elif opt in ("-i", "--ifile"):
|
|
|
elif opt in ("-i", "--ifile"):
|
|
|
inputfile = arg
|
|
|
inputfile = arg
|
|
|