我无法访问谷歌拼写检查服务位于该地址:谷歌拼写检查
https://www.google.com/tbproxy/spell
被其他任何人有这个问题?当我尝试连接时,我不断收到“坏门户”。我很确定这项服务不在线。
有什么新消息吗?我知道Google Drive在几周前发生了同样的错误消息。
我无法访问谷歌拼写检查服务位于该地址:谷歌拼写检查
https://www.google.com/tbproxy/spell
被其他任何人有这个问题?当我尝试连接时,我不断收到“坏门户”。我很确定这项服务不在线。
有什么新消息吗?我知道Google Drive在几周前发生了同样的错误消息。
您可以尝试下面的Java代码。这不需要任何API密钥。但请注意,如果您经常运行它,它将停止工作,因为谷歌阻止IP地址进行未来呼叫。您可以在小型数据集上使用它。不是理想的解决方案,但是如果它是一段时间内运行的批处理作业的一部分,那么这种方法对您而言可能是可以接受的。
public static String getSpellCheckedText(String Text) throws Exception {
String google = "http://www.google.com/complete/search?output=toolbar&q=";
String search = Text;
String charset = "UTF-8";
String spellCheckedText = Text;
URL url = new URL(google + URLEncoder.encode(search, charset));
Reader reader = new InputStreamReader(url.openStream(), charset);
BufferedReader bufReader = new BufferedReader(reader);
String line = bufReader.readLine();
StringBuffer sBuffer = new StringBuffer();
while (line != null) {
sBuffer.append(line).append("\n");
line = bufReader.readLine();
}
String content = sBuffer.toString();
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
InputSource is = new InputSource(new StringReader(content));
Document document = builder.parse(is);
NodeList nodeList = document.getElementsByTagName("suggestion");
if (nodeList != null && nodeList.getLength() > 0) {
org.w3c.dom.Node elm = nodeList.item(0);
if (elm.getNodeType() == Node.ELEMENT_NODE) {
Element suggestionElement = (Element)elm;
String suggestedString = suggestionElement.getAttribute("data");
if (suggestedString != null && suggestedString.trim().length() != 0) {
spellCheckedText = suggestedString.trim();
System.out.println(Text + " => "+ spellCheckedText);
}
}
}
return spellCheckedText;
}
我也有这个问题。我得到503 Server Error
。这个问题绝对在谷歌的最后。 (注:我在Safari 6.0.3)
在具体...
503. That's an error.
The service you requested is not available at this time.
Service error -27. That’s all we know.
它好像谷歌是有一些问题与他们的服务。希望他们尽快修复!
同上,在这里。我真的依靠它来检查文本框中的拼写。它说:“无法连接到谷歌拼写服务器。请检查您的互联网连接,然后再试一次”
我也无法访问它。 – djv 2013-04-04 18:44:23
现在停了24小时。 – 2013-04-04 19:21:33