Form1.cs

(开头部分) 6KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using Ivony.Html.Parser;
using Ivony.Html;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Xml.Linq;

namespace DomainSearchPassDate
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void uiButton1_Click(object sender, EventArgs e)
        {
            string text = uiDatetimePicker1.Value.Year.ToString();
            string text2 = uiDatetimePicker1.Value.Month.ToString();
            int day = uiDatetimePicker1.Value.Day;

            if (day < 10)
            {
                string uri = "http://domain.webmasterhome.cn/com/" + text + "-" + text2 + "-0" + day + ".asp";
                IHtmlDocument container = default(IHtmlDocument);
                try
                {
                    container = new JumonyParser().LoadDocument(uri, Encoding.GetEncoding("utf-8"));
                }
                catch (Exception ex)
                {
                    MessageBox.Show("选择的日期无过期域名,请重新选择。");
                    return;
                }

                string text3 = container.Find("meta[name=keywords]").FirstOrDefault().Attribute("content")
                    .Value()
                    .Split('国')[0];
                string value = container.Find("<pre>").FirstOrDefault().ToString();
                FileStream stream = new FileStream(text3 + ".txt", FileMode.OpenOrCreate, FileAccess.ReadWrite);
                StreamWriter streamWriter = new StreamWriter(stream);
                streamWriter.WriteLine(value);
                streamWriter.Close();
                string currentDirectory = Environment.CurrentDirectory;
                MessageBox.Show("采集完成!文件在" + currentDirectory + "下");
            }
            else
            {
                string uri2 = "http://domain.webmasterhome.cn/com/" + text + "-" + text2 + "-" + day + ".asp";
                IHtmlDocument container2 = default(IHtmlDocument);
后面还有 85 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。