从字典网站导入数据 [英] Importing Data from Dictionary Web site

查看:86
本文介绍了从字典网站导入数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我需要翻译免费的在线词典中的一组单词,所以我用C#编写了一个简单的程序来发送http请求,然后解析返回的HTML以提取含义.

但是,免费网站在130个请求后停止,要求手动输入图像中的单词(capatcha)以继续操作.我该如何解决这个问题?


谢谢,
Samer

hello,

I need to translate a group of words from a free online dictionary, so I wrote a simple program in C# to send http requests, and then parse returned HTML to extract the meanings.

However, the free web site stops after 130 requests, asking for manual entering of words as in image (capatcha) in order to continue. how can i over come this problem?


Thanks,
Samer

推荐答案

您无法克服这一点.

这是免费网站"所包含的安全步骤,可避免僵尸程序不断访问该网站并使其无故超载.

唯一可行的方法是,编写代码以通过代码自动读取验证码,然后在无需人工干预的情况下使用该读取.
You cannot overcome this.

This is a security step included by the ''free website'' to avoid bots hitting the website continuously and overload it for no reason.

Only possible way, you write a code to read captcha automatically via code and then use the reading without manual intervention.


我只是在请求之间添加了延迟,就是这样!
i just added delays between requests, and that is it!


这篇关于从字典网站导入数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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