Парсинг через WebBrowser - C#
Формулировка задачи:
Вопрос банальный, но все же. С рейтинговой системы ТО мне нужно спарсить значения.
Например - http://ratings.tankionline.com/ru/user/MyLove_MySecret/
Отсюда нужно достать:
- Уничтожил, Подбит, У/П
- Места в текущих рейтингах
- Опыт/следующее звание
используя webbrowser
). Заранее спасибоРешение задачи: «Парсинг через WebBrowser»
textual
Листинг программы
public class Score
{
public int position { get; set; }
public int value { get; set; }
}
public class Golds
{
public int position { get; set; }
public int value { get; set; }
}
public class Crystals
{
public int position { get; set; }
public int value { get; set; }
}
public class Rating
{
public Score score { get; set; }
public Golds golds { get; set; }
public Crystals crystals { get; set; }
}
public class Score2
{
public int position { get; set; }
public int value { get; set; }
}
public class Golds2
{
public int position { get; set; }
public int value { get; set; }
}
public class Crystals2
{
public int position { get; set; }
public int value { get; set; }
}
public class PreviousRating
{
public Score2 score { get; set; }
public Golds2 golds { get; set; }
public Crystals2 crystals { get; set; }
}
public class TurretsPlayed
{
public object id { get; set; }
public string name { get; set; }
public int grade { get; set; }
public string imageUrl { get; set; }
public int timePlayed { get; set; }
public int scoreEarned { get; set; }
}
public class HullsPlayed
{
public long id { get; set; }
public string name { get; set; }
public int grade { get; set; }
public string imageUrl { get; set; }
public int timePlayed { get; set; }
public int scoreEarned { get; set; }
}
public class PaintsPlayed
{
public long id { get; set; }
public string name { get; set; }
public int grade { get; set; }
public string imageUrl { get; set; }
public int timePlayed { get; set; }
public int scoreEarned { get; set; }
}
public class ModesPlayed
{
public string name { get; set; }
public string type { get; set; }
public int timePlayed { get; set; }
public int scoreEarned { get; set; }
}
public class SuppliesUsage
{
public int id { get; set; }
public string name { get; set; }
public string imageUrl { get; set; }
public int usages { get; set; }
}
public class Response
{
public string name { get; set; }
public int rank { get; set; }
public int score { get; set; }
public int scoreNext { get; set; }
public int scoreBase { get; set; }
public int kills { get; set; }
public int deaths { get; set; }
public int earnedCrystals { get; set; }
public int caughtGolds { get; set; }
public bool hasPremium { get; set; }
public Rating rating { get; set; }
public PreviousRating previousRating { get; set; }
public List<TurretsPlayed> turretsPlayed { get; set; }
public List<HullsPlayed> hullsPlayed { get; set; }
public List<PaintsPlayed> paintsPlayed { get; set; }
public List<ModesPlayed> modesPlayed { get; set; }
public List<SuppliesUsage> suppliesUsage { get; set; }
public List<object> presents { get; set; }
}
public class RootObject
{
public string responseType { get; set; }
public Response response { get; set; }
}