html agility pack - C# HtmlAgilityPack Selecting url & CSS -
i'm trying grab following data i'm unsure how.
so, first thing i'm trying grab this
<div style="background-color: #eee; margin: 0px; padding-left: 15px; font-size: 12px; padding-top: 5px; border-right: 5px solid crimson !important;"> field-tested / covert rifle
i want grab "field-tested / covert rifle".
i did following got null exception.
var wear = webutility.htmldecode(node.selectsinglenode(@".//div[@style=""background-color: #eee; margin: 0px; padding-left: 15px; font-size: 12px; padding-top: 5px; border-right: 5px solid crimson !important;""]").innertext);
also second bit of data want grab
<div class="item-icon" style="background-image: url(https://steamcommunity-a.akamaihd.net/economy/image/-9a81dlwlwj2uugcvs_nsvtzdoedtwwkgzzlqhtxdz7i56ku0zwwo4nux4ofjzehlbxh5apeo4ymlhxyqkncrvco04devlxkkgpot7hxfdhjxszjemkv086jlokohcj5nr_yg2yfvzcg0rmxri2n31ex8ks9zjz2jikdcva4zarrqvm-wlzn1sc8ujnmwwwj5hcojjkuza/256fx256f);">
i have no idea how attempt this, lastly bit of data , have no idea well.
<a href='/price/?market_hash_name=ak-47%20%7c%20vulcan%20(field-tested)' target=_blank style='color: black;'>$23.68</a></small></p>
the reason don't know how part because href different each time. i'm unsure how this...
Comments
Post a Comment