fnneves / amazon_webscraper

Simple function that will get product prices and other information from product URLs provided in a csv file.
55 stars 50 forks source link

Line #2

Open migueltech97 opened 3 years ago

migueltech97 commented 3 years ago

I am getting this error. I have the folder and file in the correct directory, So I am not sure what its giving me the list index being out of range. Can someone help? Thanks!

Terminal output:

>         77         print('end of interval '+ str(interval))
>         78             # after the run, checks last search history record, and appends this run results to it, saving a new file
>    ---> 79     last_search = glob('C/Users/670240890/Documents/search_history/*.xlsx')[-1] # path to file in the folder
>         80     search_hist = pd.read_excel(last_search)
>         81     final_df = search_hist.append(tracker_log, sort=False)
> 
>    IndexError: list index out of range
luisgarciadiaz commented 3 years ago

last_search = glob('./search_history/*.xlsx')[-1]