【问题标题】:Google search by image from own webpage谷歌通过自己网页的图片搜索
【发布时间】:2012-02-17 11:27:54
【问题描述】:

是否可以直接从我自己的网页中搜索图片?

我想插入一个 URL,例如:“http://thegalaxyguide.com/galaxy/sun/ultra_violet_sun.gif”,然后被重定向到 google 并查看结果。

我试过了

    <form method="get" action="http://images.google.com/searchbyimage"
    <input type="text" />
    <input type="submit" value="Search" />
    </form>

但它只是去谷歌自己的“按图片搜索”页面......

【问题讨论】:

    标签: html forms google-image-search


    【解决方案1】:

    这样

    <form method=get action='http://www.google.co.in/searchbyimage'>
    <input type=text name=image_url value='https://www.google.com/intl/en_com/images/srpr/logo3w.png'>
    <input type=hidden name='encoded_image' value='' />
    <input type=hidden name='image_content' value='' />
    <input type=hidden name='filename' value='' />
    <input type=hidden name='num' value='10' />
    <input type=hidden name='hl' value='en' />
    <input type=hidden name='authuser' value='0' />
    <input type=hidden name='bih' value='638' />
    <input type=hidden name='biw' value='1366' /><br>
    <input type=submit name='biw' value='search' />
    </form>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-07-18
      相关资源
      最近更新 更多