public static string[] GetPopularTags() { string content = GetSource("http://api.beeg.com/api/v5/index/search/0/pc?query=apiusage"); JsonBeegWebsite jsonResult = JsonConvert.DeserializeObject <JsonBeegWebsite>(content); return(jsonResult.tags.popular); }
public static string[] GetIDListFromPage(int pageNumber) { string[] result; string content = GetSource("http://api.beeg.com/api/v5/index/main/" + pageNumber + "/pc"); JsonBeegWebsite jsonResult = JsonConvert.DeserializeObject <JsonBeegWebsite>(content); result = new string[CountStringOccurrences(content, "{\"title\":")]; for (int i = 0; i < result.Length; i++) { result[i] = jsonResult.videos[i].id; } return(result); }