Exemplo n.º 1
0
    private anon_0bff662ab81749ce9629d644bb3a956d Copy_4a32ec48c7394a7d80b9af418f2ff267(DownloadPage o)
    {
        anon_0bff662ab81749ce9629d644bb3a956d t = new anon_0bff662ab81749ce9629d644bb3a956d();

        t.DownloadPage = o;
        return(t);
    }
Exemplo n.º 2
0
    private CodeTable <anon_0bff662ab81749ce9629d644bb3a956d> Where_e1285f8a98c648d3a3045e5fbcdaa3c8(CodeTable <anon_0bff662ab81749ce9629d644bb3a956d> table)
    {
        Call(10);
        CodeTable <anon_0bff662ab81749ce9629d644bb3a956d> newTable = new CodeTable <anon_0bff662ab81749ce9629d644bb3a956d>();
        IList <anon_0bff662ab81749ce9629d644bb3a956d>     rows     = table.Where(row =>
        {
            return(true);
        }).ToList();

        newTable.SetRows(rows);
        IEnumerator <anon_0bff662ab81749ce9629d644bb3a956d> i = newTable.GetEnumerator();

        for (
            ; i.MoveNext();
            )
        {
            anon_0bff662ab81749ce9629d644bb3a956d row = i.Current;
            row.DownloadPage = row.DownloadPage.CssWhere("div.topic");
        }
        return(newTable);
    }
Exemplo n.º 3
0
    private Table <ResultRow> Select_a4cd9e2cf0fb44f6a602ce40dc88139b()
    {
        Call(5);
        RuntimeTable <ResultRow> result = new RuntimeTable <ResultRow>();

        result.AddColumn("h3");
        result.AddColumn("p:nth-child(3)");
        result.AddColumn("p.author a");
        CodeTable <anon_0bff662ab81749ce9629d644bb3a956d> fromTable = From_47abbd03835942ada60a469ff108ccae();

        fromTable = Where_e1285f8a98c648d3a3045e5fbcdaa3c8(fromTable);
        IEnumerator <anon_0bff662ab81749ce9629d644bb3a956d> x = fromTable.GetEnumerator();

        for (
            ; x.MoveNext();
            )
        {
            anon_0bff662ab81749ce9629d644bb3a956d row = x.Current;
            IEnumerator <HtmlNode> y = row.DownloadPage.nodes.GetEnumerator();
            for (
                ; y.MoveNext();
                )
            {
                HtmlNode  node      = y.Current;
                ResultRow resultRow = new ResultRow(3);
                resultRow[0] = node.Pick("h3").TakeText();
                resultRow[1] = node.Pick("p:nth-child(3)").TakeText();
                resultRow[2] = node.Pick("p.author a").TakeText();
                if ((((resultRow[0] != null) &&
                      (resultRow[1] != null)) &&
                     (resultRow[2] != null)))
                {
                    result.Add(resultRow);
                }
            }
            row.DownloadPage.Clear();
        }
        OnSelect(result);
        return(result);
    }