示例#1
0
        private void GetUsernames(String link)
        {
            try
            {
                var resp2 = XNetHttpRequest.Get("https://www.filimo.com/m/" + link);

                if (!resp2.Item1)
                {
                    return;
                }

                String cid = FilimoContentParser.Cid(resp2.Item2);

                String address = String.Format("https://www.filimo.com/star/comment/list/uid/{0}/perpage/{1}/curoffset/20/commentid/{2}/moretype/forward", link, UserInputs.Count, cid);

                var resp = XNetHttpRequest.Get(address);
                if (!resp.Item1)
                {
                    return;
                }

                var           usernames = UserGather.FilimoContentParser.ParseCollection(resp.Item2, UserGather.Statics.UsernamePattern);
                List <String> users     = new List <string>();

                foreach (Match username in usernames)
                {
                    String value = username.Groups[1].Value;
                    UG.Call(value);
                }
            }
            catch
            {
            }
        }
示例#2
0
        public static List <String> GetMovies(String link)
        {
            var resp = XNetHttpRequest.Get(link);

            if (resp.Item1)
            {
                List <String> links = new List <string>();
                var           col   = FilimoContentParser.ParseCollection(resp.Item2, Statics.MoviesPattern);

                foreach (System.Text.RegularExpressions.Match m in col)
                {
                    links.Add(m.Groups[1].Value);
                }

                return(links);
            }
            else
            {
                return(null);
            }
        }