How to multiply the numbers after a certain word?



  • Hi!
    How to multiply the numbers by 0.94, after the word “price_buyin”?

    Here`s example
    [{“id”:1509,“name”:“Lioele Moist Gel Spray Cream”,“short_text”:“Гель-крем увлажняющий”,“barcode”:8809247952675,“price”:829,“price_old”:null,“quantity”:1,“manufacturer”:“Lioele”,“url_name”:“gelkrem-uvlazhnyayuschiy-lioele-moist-gel-spray-cream”,“weight”:null,“volume”:100,“option_name”:null,“option_id”:null,“stock”:4,“price_buyin”:419},{“id”:2257,“name”:“Missha Glam Silky Body Balm”,“short_text”:“Шелковая крем-пудра для тела”,“barcode”:8888000000209,“price”:1290,“price_old”:null,“quantity”:1,“manufacturer”:“Missha”,“url_name”:“shelkovaya-krempudra-dlya-tela-missha-glam-silky-body-balm”,“weight”:25,“volume”:null,“option_name”:“Let’s Get Glam!”,“option_id”:3274,“stock”:5,“price_buyin”:800},{“id”:2783,“name”:“Shara Shara Aurora Liquid Highlighter”,“short_text”:“Жидкий хайлайтер”,“barcode”:8809091744822,“price”:759,“price_old”:null,“quantity”:1,“manufacturer”:“Shara Shara”,“url_name”:“zhidkiy-haylayter-shara-shara-aurora-liquid-highlighter”,“weight”:null,“volume”:9,“option_name”:“01 Pink”,“option_id”:3290,“stock”:6,“price_buyin”:425},{“id”:2783,“name”:“Shara Shara Aurora Liquid Highlighter”,“short_text”:“Жидкий хайлайтер”,“barcode”:8809091744839,“price”:759,“price_old”:null,“quantity”:1,“manufacturer”:“Shara Shara”,“url_name”:“zhidkiy-haylayter-shara-shara-aurora-liquid-highlighter”,“weight”:null,“volume”:9,“option_name”:“02 Gold”,“option_id”:3291,“stock”:6,“price_buyin”:425}]

    Thank you



  • use python to do that. Your data looks like python data structure ( array of dictionary )
    http://npppythonscript.sourceforge.net/


Log in to reply