I'm trying to grab the following data but I'm unsure how.
So, first thing I'm trying to grab is 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 to grab the "Field-Tested / Covert Rifle".
I did the following but got a 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 the second bit of data I want to grab is
<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 to even attempt this, lastly is this bit of data and I have no idea as 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 I don't know how to do this part is because the href will be different each time. So I'm unsure how to do this...