是否有一致的方式来链接到谷歌“我感觉幸运”结果? [英] Is there a consistent way to link to Google "I Feel Lucky" result?

查看:89
本文介绍了是否有一致的方式来链接到谷歌“我感觉幸运”结果?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,我试图创建一个简单的方法,根据他们的名字链接到NFL.com上的NFL球员档案。由于NFL.com的玩家个人资料页面没有可预测的网址结构,因此我试图根据网址字符串创建Google的我感到幸运结果的链接:



http://www.google.com/search?q=site nfl.com + 名字 + 姓氏 + 个人资料& btnI



问题是:有时候这个链接会起作用,并将我带到第一个我感到幸运的结果,但有时它只是将我带到标准的Google搜索结果页面。



例1(带我到NFL.com的第一个结果):

http://www.google.com/search?q=site:nfl.com+Larry+Fitzgerald+profile&btnI



示例2(将我带到Google搜索结果页面,而不是第一个结果)

< href =http://www.google.com/search?q=site:nfl.com+Rob+Housl er + profile& btnIrel =noreferrer> http://www.google.com/search?q=site:nfl.com+Rob+Housler+profile&btnI



有没有办法确保我每次都得到我感到幸运的结果?
$ b 编辑



以下是其他工作和不工作的链接示例。请注意,这些链接之间的唯一区别在于搜索条款,但有些将您转移到第一个Google搜索结果网站,有些则会将您带到实际的搜索结果中。



工作我们被发送到第一个谷歌搜索结果NFL.com的网站)



不工作(即我们被发送到Google搜索结果页面)




解决方案

http://www.google.com/search?q=stackoverflow&btnI 用您的单词替换Stack Oveflow


In my application, I'm trying to create a simple way to link to profiles of NFL players on NFL.com based on their name. Because NFL.com's player profile pages do not have a predictable URL structure, I am trying to create a link to Google's "I Feel Lucky" results based on a URL string:

http://www.google.com/search?q=site:nfl.com+firstname+lastname+profile&btnI

The problem is: sometimes the link works and takes me to the first "I Feel Lucky" result, but sometimes it just takes me to the standard Google search results page.

Example 1 (takes me to first result, NFL.com):

http://www.google.com/search?q=site:nfl.com+Larry+Fitzgerald+profile&btnI

Example 2 (takes me to the Google search results page, not the first result)

http://www.google.com/search?q=site:nfl.com+Rob+Housler+profile&btnI

Is there a way to ensure I get the "I Feel Lucky" result every time?

EDIT

Here are additional examples of links that work and don't work. Note that the only differences between these links are the search terms yet some transfer you to the first Google result website and some take you to the actual search results.

Work (i.e. we are sent to the site of the first Google Result, NFL.com)

Don't Work (i.e. we are sent to Google Search results page)

解决方案

http://www.google.com/search?q=stackoverflow&btnI Replace Stack Oveflow with your words

这篇关于是否有一致的方式来链接到谷歌“我感觉幸运”结果?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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