Python to csv file writes only the first value?

Wrote the parser, but why do I get the img and write to csv dimensions are in rows, not columns, how to do what they were written in rows?
The data I have now parsed so
a5f5e0d6e21249d4bf9ba5e24ed1ad6c.png
And that would be so
51609ccd2eed424aa1960e2f45accc22.png

the code which parses the values, and add them to the dictionary
bb_strings = re.findall(R, var model = ({.*})', ad)
bp = {}
if bb_strings:
 bp = json.loads(bb_strings[0])

 for bl in bp['AVAILABLE_SIZES']:
 footlocker.append(('size', bl))

and the code which is responsible for the parsing of images and preservation of data
for k in d['set']['item']:
 dd = '{url}{ext}{end}'.format(url=imgurg, ext=k['i']['n'], end='?id=Y6YPH3?&wid=1280&hei=877&fmt.png')
 t = requests.get(dd)
 out = open('images/%s' % dd.split('/')[-1], 'wb')
out.write(t.content)
 footlocker.append(('images', dd.split('/')[-1]))
 out.close()
June 27th 19 at 22:54
2 answers
June 27th 19 at 22:56
Solution
size = 0
 bb_strings = re.findall(R, var model = ({.*})', ad)
 bp = {}
 if bb_strings:
 bp = json.loads(bb_strings[0])
 for bl in bp['AVAILABLE_SIZES']:
 size +=1
 footlocker.append(('size%s' %size, bl))
June 27th 19 at 22:58
Lucca explicit than implicit - remember?

or file mode ( 'wb') switch to append (ab)
or all in a list of lists and then into a file

second - correct
1. why to record my pictures are all saved.
2. I have written from the beginning in the list to a file - camron_Rob commented on June 27th 19 at 23:01
then what's the problem? if the list is - all rows in the file will be - Juanita17 commented on June 27th 19 at 23:04
no writes only the first , maybe a bug in csv? - camron_Rob commented on June 27th 19 at 23:07
Oh, not

get pprint.pprint variable before writing, look what it - Juanita17 commented on June 27th 19 at 23:10
: Are you sure that you sure must be six nested for loops? Understand how they work, right? - alexandro_Auer commented on June 27th 19 at 23:13
: Yes of course - camron_Rob commented on June 27th 19 at 23:16
: checked in the dictionary deduced there rules as I need, probably not the cycles - camron_Rob commented on June 27th 19 at 23:19
: Yes, I do not mean that this is a problem, just caught my eye =) was Just already have the people who a city nested for loops without knowing how they work and was making a lot of unnecessary work and a broken program.
And in the dictionary should be "rules as I need," and as dataframe need to be able to perform the method =) Take something like the CWS and do to_dict, then compare what's happened and what you can do. - alexandro_Auer commented on June 27th 19 at 23:22
: [('Category 1', 'Shoes'), ('Category 2', "Men's"), ('Category 3', 'Boots'), ('Category 4', 'Dress Boots'), ('Category 5', 'Timberland'), ('Headings', "Timberland Roll-Top - Men's"), ('Old price', '$169.99'), ('New price', '$125.99'), ('product id', 'A1781919'), ('selectedstyle', 'Gopher'), ('descripton', '\n A style unlike any other. The Timberland Roll Top Boot rolls down for a little built-in air conditioning and a whole lotta style. Premium, full-grain leather upper provides comfort, durability and abrasion resistance. Direct-attach seam construction promises lasting durability. Padded collar provides a comfortable fit around the ankle and keeps out debris. Rubber lug sole for traction and durability. Embossed Timberland tree logo on the side.\n '), ('size', '07.0'), ('size', '07.5'), ('size', '08.0'), ('size', '10.0'), ('size', '10.5'), ('size', '11.5'), ('size', '12.0'), ('size', '13.0'), ('size', '14.0'), ('size', '15.0'), ('images', 'A1781919_fr_sc7?id=Y6YPH3?&wid=1280&hei=877&fmt.png'), ('images', 'A1781919_a1_sc7?id=Y6YPH3?&wid=1280&hei=877&fmt.png'), ('images', 'A1781919_a2_sc7?id=Y6YPH3?&wid=1280&hei=877&fmt.png'), ('images', 'A1781919_a3_sc7?id=Y6YPH3?&wid=1280&hei=877&fmt.png'), ('images', 'A1781919_bo_sc7?id=Y6YPH3?&wid=1280&hei=877&fmt.png')]
in the dictionary footlocker, this means that the cycle works as it should and writes to the dictionary all right and when he formed csv that is why the 1 value instead of all values as I need - camron_Rob commented on June 27th 19 at 23:25

Find more questions by tags CSVPythonParsing