Json – separator for print is not inserted
I need to insert a separator into the result, but it is not inserted soup = BeautifulSoup(response.text,'lxml') elements = soup.select('div.button.m') for i in elements: result = i.attrs['data'] print(result, sep=', ') with code i get list of 'data' attributes without delimiter…