I have a CSV containing some columns with data, the 15th column reports a list of URLs. Now, I need to select each URL from the column, scrape a new price from the target webpage, and then store that in the price column to update the old price.
Without the same column enumeration, here is an approximate CSV:
asin,title,product URL,price
KSKFUSH01,Product Title,http://....,56.00
Below is the sample code I wrote, but it merely prints URLs :(
import csv
with open('some.csv', 'r') as csv_file:
csv_reader = csv.reader(csv_file)
for line in csv_reader:
print(line[15])
Any help or suggestions about accomplishing this goal?
Thanks