How to Store Scraped Data

In the “Book Store Scrapper” challenge, I have scrapped the data but I’m not able to store in CSV file. is any direct method from command prompt to store the data?

Hey @Abhishek-Vishwakarma-653004358467067,

you may create the necessary numpy array of the data you want to convert to csv.

numpy.savetxt saves an array to a text file.

import numpy
a = numpy.asarray([ [1,2,3], [4,5,6], [7,8,9] ])
numpy.savetxt("foo.csv", a, delimiter=",")