C# 可以通过图像搜索 Google 并下载第一个吗?

C# Possible to search Google by image and downloading the first one?

有没有办法以编程方式上传图像文件以在 Google 中搜索,然后下载第一个(分辨率最好的)?

编辑:Google 搜索 API 对我不起作用,因为我每天会有超过 100 个请求,而且我不愿意付费,因为我不是公司

是的,有。 Google Custom Search API allows you to submit queries (including images) and retrieve results programmatically. There are even client libraries 支持多种语言。

编辑:OP改变了他的问题后,基本上说他不想使用Google API,我只能参考this(有点过时)提问并引用 Google 服务条款:

1.4 Appropriate Conduct. You shall not, and shall not allow any third party to: ... (i) directly or indirectly generate queries, or impressions of or clicks on Results, through any automated, deceptive, fraudulent or other invalid means (including, but not limited to, click spam, robots, macro programs, and Internet agents);

所以回顾一下,它 可能的,但只有通过我上面链接的 API 才合法。