How to create columns in a csv file and insert row under them in python scrapy -
How to create columns in a csv file and insert row under them in python scrapy -
please help me in creating columns , inserting rows under them in csv file using python scrapy. need write scraped info 3 columns. first of 3 columns created , info entered in each row.
csv comma saparated values format. means text file strings separated commas , line-downs. each line downwards creates row , each comma creates column in row.
i guess simplest way create csv file create pythonic dict
each key column , value each column list of rows none
stands obvious lack of value. can fill in dict appending values requested column (thus adding row) , transform dict csv file iterating on list indexes , each column either add together value,
entry in file or ,
entry index-out-of-bound or none value corresponding list. each row add together line down.
python scrapy
Comments
Post a Comment