+ 1

Extraction from Html?

How do i extract the value var datalayer as list from the html content below? <script> var dataLayer = [{"page_type":"Product","gender":"male","app_owner":"no","newsletter":"non subscriber","user_account_country":"NP","user_account_city":"Kathmandu Inside Ring Road","user_account_region":"Bagmati","hashed_email":"3cdc5b17a1bdac4e2f4fb4cd37867657","shashed_email":"82f0515b16cdc091b7a73afd88d0f9c025d3936098037c6a444e3bfc788b2577","login":"logged","client_id":"GA1.3.1684965976.1494911629","buyer_type":"new","ab_version":"a","platform":"desktop_website","shop_country":"NP","local_currency":"NPR","site_language":"EN","customer_id":"62656","visitor_type":"returning","page_url":"http:\/\/www.kaymu.com.np\/li-ning-star-pro-red-black-badminton-shoes-for-men-aytl205-4-1734677.html\/","category_name_level_1":"Men's Fashion","category_id_level_1":"13426","category_name_level_2":"Men's Shoes","category_id_level_2":"13493","category_name_level_3":"Men's Sport Shoes","category_id_level_3":"13503","sku_config":"LI009FFBL6HHNPBID","product_brand":"Li-Ning","product_euro_price":39.49,"product_local_price":4490,"onpage_seller_id":"227974","onpage_seller_rating_average":0,"onpage_seller_rating_count":0,"product_name":"Li-Ning Star Pro Red\/Black Badminton Shoes For Men (Aytl205-4)","product_description":"Pair it up with your favorite outfit to complete an amazing look. An excellent footwear option.&nbsp;Comfortable and durable, made from fine materials. A worthy investment.&nbsp;Gender : menLace type : full lace upMaterial: upper-midsole+pu+mesh\/rubber outsole+pylon midsolePadded ankle collarSole : rubberCushioned insoleType: sportyShoe care: surface dirt can be cleaned with a good quality brush or a damp cloth.","product_euro_discount":1.98,"product_local_discount":225,"product_discount_percentage":5,"product_euro_amount":37.51,"product_local_amount":4265,"product_stocks":6,"product_available_sizes":"42,43,44","product_picture_url":"https:\/\/static.kaymu.com.np\/p\/li-ning-7426-7764371-1.jpg"}], currencyCode = 'E

19th May 2017, 5:02 PM
buggythegret
buggythegret - avatar
1 Odpowiedź
+ 4
save the codes on Sololearn code playground then link it here. Hope someone will take a look.
19th May 2017, 5:18 PM
Apel Mahmod
Apel Mahmod - avatar