差分

ナビゲーションに移動 検索に移動

Xamarin.AndroidでGoogle Playからアプリ情報をブッコ抜く

122 バイト追加, 2018年10月3日 (水) 04:17
agent.UserAgent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Safari/605.1.15";
var doc = agent.Load("https://play.google.com/store/apps/details?id=skt.android.mayukoyokubariset&hl=ja");
 
// パース
var nodes = doc.DocumentNode
.SelectNodes("//div[contains(@class, 'hAyfc')]/span[contains(@class, 'htlgb')]");
 
// Google Play Consoleでの設定次第で出現項目が変化するので注意
Console.WriteLine("更新日   :" + nodes[0].InnerText);
Console.WriteLine("サイズ   :" + nodes[1].InnerText);
匿名利用者

案内メニュー