skip to Main Content

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…

VIEW QUESTION

Json – Search for text in an array nodeJS

I have the following data let rawdata = fs.readFileSync('test.json'); let orders = JSON.parse(rawdata); Rawdata data looks like this [{"order":["Awaiting delivery","Order date: Dec 18, 2022","Order ID: 11111111","Copy","Order details","store name","product name","1, 1","US $1.73x1","Total: US $5.39","Confirm receipt","Track order"]},{"order":["Awaiting delivery","Order date: Dec 18, 2022","Order…

VIEW QUESTION
Back To Top
Search