我正在开发一个元搜索引擎(元问答系统) [英] I am developing a Meta Search Engine (Meta Question Answering System )

查看:123
本文介绍了我正在开发一个元搜索引擎(元问答系统)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,问候
我正在用C#开发元搜索引擎(元问答系统).
我是初学者.

我系统中的问题将自动在主要搜索引擎中发布,从每个搜索引擎中至少获取10个结果并在我的系统中排名.有人可以用C#代码帮助我吗? plzzzzzzzzzzzzzzzzzzzzzzzz 我尝试了很多方法.

Hi Everyone, Greetings
I am developing a Meta Search Engine (Meta Question Answering System ) in C# ...
I am a beginner.

The question from my system will automatically get posted in main search engines, n minimum 10 results will be taken from each search engine and ranked in my system. Can anybody please help me with C# code for doing this plzzzzzzzzzzzzzzzzzzzzzzz please. I tried a lot cudnt do it.

推荐答案

请不要声称您正在开发一些出色的产品,请立即索取所有实现代码.如果您不具备自己制作技能的能力,请尝试使用您力所能及的更简单的方法.
Please do not claim that you are developing some wonderful product and immediately ask for all the implementation code. If you do not have the skills to produce this yourself then try something simpler that is within your abilities.


我同意Richard的看法.根据您目前的技能和经验,您对工作的选择可能会有些过于乐观.

即使您知道如何执行来自C#的HTTP请求,也请记住,对于完成的应用程序,您需要良好的UI技能,而我并不是指仅进行编程.
I agree with Richard. With your present skill set and experience, your choice of work may be a little too optimistic.

Even if you figure out how to do HTTP requests from C#, remember that for a finished application you need good UI skills and I don''t mean just programming ones.


我能做些什么在互联网帮助下是这样的:

what i could do with internet help is this :

using System.Net;
...
string HttpPost (string uri, string parameters)
{
    // parameters: name1=value1&name2=value2
    WebRequest webRequest = WebRequest.Create (uri);
    //string ProxyString =
    // System.Configuration.ConfigurationManager.AppSettings
    // [GetConfigKey("proxy")];
    //webRequest.Proxy = new WebProxy (ProxyString, true);
    //Commenting out above required change to App.Config
    webRequest.ContentType = "application/x-www-form-urlencoded";
    webRequest.Method = "POST";
    byte[] bytes = Encoding.ASCII.GetBytes (parameters);
    Stream os = null;
    try
    { // send the Post
        webRequest.ContentLength = bytes.Length; //Count bytes to send
        os = webRequest.GetRequestStream();
        os.Write (bytes, 0, bytes.Length); //Send it
    }
    catch (WebException ex)
    {
        MessageBox.Show ( ex.Message, "HttpPost: Request error",
        MessageBoxButtons.OK, MessageBoxIcon.Error );
    }
    finally
    {
        if (os != null)
        {
            os.Close();
        }
    }

    try
    { // get the response
        WebResponse webResponse = webRequest.GetResponse();
        if (webResponse == null)
        { return null; }
        StreamReader sr = new StreamReader(webResponse.GetResponseStream());
        return sr.ReadToEnd ().Trim ();
    }
    catch (WebException ex)
    {
        MessageBox.Show ( ex.Message, "HttpPost: Response error",
        MessageBoxButtons.OK, MessageBoxIcon.Error );
    }
    return null;
} // end HttpPost



但这仍然不能解决问题:(



but this still doesnt solve the problem :(


这篇关于我正在开发一个元搜索引擎(元问答系统)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆