Split on comma using python and scrapy
问题 Am using scrapy to extract data from a certain website, I have a field am extracting that returns both the city and the region I want to be able to split the returned data on the comma and store the first part of it inside the city field and second part of it in the region field The code am using to extract the data : loader.add_css('region','.seller-box__seller-address__label::text') the output of the data is : a column named region with for example this value : Elbląg, Warmińsko-mazurskie