Skip to content

Instantly share code, notes, and snippets.

@nrubin
Created May 23, 2018 17:55
Show Gist options
  • Save nrubin/43f70d7d096f1758b7e2a1a5c57e7382 to your computer and use it in GitHub Desktop.
Save nrubin/43f70d7d096f1758b7e2a1a5c57e7382 to your computer and use it in GitHub Desktop.
import csv
f = open('asinstoretag.csv','r')
r = csv.reader(f)
next(r)
print "itemid,destination_product_id,source"
for l in r:
var = l[3].replace('PGLQDqXJCijyeutnXoi4uF_','')
print "%s,%s,amazon" % (var,var)
# to use: python process_asins.py > processeds_asins.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment