Спарсить строку



  • Вот я получаю куки с сайта и мне надо из куки вытащить токен
    Куки:

    [{"creation":{"day_of_month":"1","day_of_week":"2","hour":"12","millisecond":"587","minute":"28","month":"1","second":"42","year":"2019"},"domain":".5ka.ru","expires":{"day_of_month":"1","day_of_week":"1","hour":"12","millisecond":"0","minute":"28","month":"4","second":"42","year":"2019"},"has_expires":"1","httponly":"0","last_access":{"day_of_month":"1","day_of_week":"2","hour":"12","millisecond":"587","minute":"28","month":"1","second":"42","year":"2019"},"name":"_gcl_au","path":"\/","secure":"0","value":"1.1.1564089414.1546345723"},{"creation":{"day_of_month":"1","day_of_week":"2","hour":"12","millisecond":"749","minute":"28","month":"1","second":"42","year":"2019"},"domain":".my.5ka.ru","expires":{"day_of_month":"31","day_of_week":"4","hour":"12","millisecond":"0","minute":"28","month":"12","second":"42","year":"2020"},"has_expires":"1","httponly":"0","last_access":{"day_of_month":"1","day_of_week":"2","hour":"12","millisecond":"749","minute":"28","month":"1","second":"42","year":"2019"},"name":"_ga","path":"\/","secure":"0","value":"GA1.3.1380613914.1546345723"},{"creation":{"day_of_month":"1","day_of_week":"2","hour":"12","millisecond":"750","minute":"28","month":"1","second":"42","year":"2019"},"domain":".my.5ka.ru","expires":{"day_of_month":"2","day_of_week":"3","hour":"12","millisecond":"0","minute":"28","month":"1","second":"42","year":"2019"},"has_expires":"1","httponly":"0","last_access":{"day_of_month":"1","day_of_week":"2","hour":"12","millisecond":"750","minute":"28","month":"1","second":"42","year":"2019"},"name":"_gid","path":"\/","secure":"0","value":"GA1.3.2008555865.1546345723"},{"creation":{"day_of_month":"1","day_of_week":"2","hour":"12","millisecond":"759","minute":"28","month":"1","second":"42","year":"2019"},"domain":".my.5ka.ru","expires":{"day_of_month":"1","day_of_week":"2","hour":"12","millisecond":"0","minute":"29","month":"1","second":"42","year":"2019"},"has_expires":"1","httponly":"0","last_access":{"day_of_month":"1","day_of_week":"2","hour":"12","millisecond":"759","minute":"28","month":"1","second":"42","year":"2019"},"name":"_dc_gtm_UA-77780429-1","path":"\/","secure":"0","value":"1"},{"creation":{"day_of_month":"1","day_of_week":"2","hour":"12","millisecond":"923","minute":"28","month":"1","second":"42","year":"2019"},"domain":".5ka.ru","expires":{"day_of_month":"1","day_of_week":"3","hour":"12","millisecond":"0","minute":"28","month":"1","second":"42","year":"2020"},"has_expires":"1","httponly":"0","last_access":{"day_of_month":"1","day_of_week":"2","hour":"12","millisecond":"923","minute":"28","month":"1","second":"42","year":"2019"},"name":"_ym_uid","path":"\/","secure":"0","value":"1546345723276746617"},{"creation":{"day_of_month":"1","day_of_week":"2","hour":"12","millisecond":"923","minute":"28","month":"1","second":"42","year":"2019"},"domain":".5ka.ru","expires":{"day_of_month":"1","day_of_week":"3","hour":"12","millisecond":"0","minute":"28","month":"1","second":"42","year":"2020"},"has_expires":"1","httponly":"0","last_access":{"day_of_month":"1","day_of_week":"2","hour":"12","millisecond":"923","minute":"28","month":"1","second":"42","year":"2019"},"name":"_ym_d","path":"\/","secure":"0","value":"1546345723"},{"creation":{"day_of_month":"1","day_of_week":"2","hour":"12","millisecond":"81","minute":"28","month":"1","second":"43","year":"2019"},"domain":"my.5ka.ru","expires":{"day_of_month":"2","day_of_week":"3","hour":"15","millisecond":"216","minute":"28","month":"1","second":"43","year":"2019"},"has_expires":"1","httponly":"0","last_access":{"day_of_month":"1","day_of_week":"2","hour":"12","millisecond":"216","minute":"28","month":"1","second":"43","year":"2019"},"name":"location_id","path":"\/","secure":"0","value":"1814"},{"creation":{"day_of_month":"1","day_of_week":"2","hour":"12","millisecond":"128","minute":"28","month":"1","second":"43","year":"2019"},"domain":".5ka.ru","expires":{"day_of_month":"1","day_of_week":"2","hour":"12","millisecond":"0","minute":"58","month":"1","second":"43","year":"2019"},"has_expires":"1","httponly":"0","last_access":{"day_of_month":"1","day_of_week":"2","hour":"12","millisecond":"128","minute":"28","month":"1","second":"43","year":"2019"},"name":"_ym_visorc_49423435","path":"\/","secure":"0","value":"w"},{"creation":{"day_of_month":"1","day_of_week":"2","hour":"12","millisecond":"216","minute":"28","month":"1","second":"43","year":"2019"},"domain":".5ka.ru","expires":{"day_of_month":"0","day_of_week":"0","hour":"0","millisecond":"0","minute":"0","month":"0","second":"0","year":"0"},"has_expires":"0","httponly":"0","last_access":{"day_of_month":"1","day_of_week":"2","hour":"12","millisecond":"216","minute":"28","month":"1","second":"43","year":"2019"},"name":"token","path":"\/","secure":"0","value":"Token8db452171362ed1c4b9d735933200e22ea634ec3"},{"creation":{"day_of_month":"1","day_of_week":"2","hour":"12","millisecond":"228","minute":"28","month":"1","second":"43","year":"2019"},"domain":"my.5ka.ru","expires":{"day_of_month":"0","day_of_week":"0","hour":"0","millisecond":"0","minute":"0","month":"0","second":"0","year":"0"},"has_expires":"0","httponly":"0","last_access":{"day_of_month":"1","day_of_week":"2","hour":"12","millisecond":"228","minute":"28","month":"1","second":"43","year":"2019"},"name":"header_name","path":"\/","secure":"0","value":"X-Authorization"},{"creation":{"day_of_month":"1","day_of_week":"2","hour":"12","millisecond":"230","minute":"28","month":"1","second":"43","year":"2019"},"domain":".5ka.ru","expires":{"day_of_month":"2","day_of_week":"3","hour":"8","millisecond":"0","minute":"28","month":"1","second":"43","year":"2019"},"has_expires":"1","httponly":"0","last_access":{"day_of_month":"1","day_of_week":"2","hour":"12","millisecond":"230","minute":"28","month":"1","second":"43","year":"2019"},"name":"_ym_isad","path":"\/","secure":"0","value":"2"}]
    
    

    Достать надо вот это : Token8db452171362ed1c4b9d735933200e22ea634ec3 ,как это сделать в bas?



  • @ctac04 JSON.parse использовать 0_1546349378808_demo.xml



  • @uraabk ,завтра тестану.Спасибо,всегда выручаешь:)


Log in to reply