如何将产品信息存入数据库而无需手动填充?

发布于 2024-12-10 21:09:51 字数 332 浏览 5 评论 0原文

我正在寻找一种根据产品名称动态链接产品信息的方法。

例如:用户输入“Playstation 3”,网站就会抓取任何可以获取的信息,例如图片、零售价格等。理想情况下,它会让您选择正确的商品(同时返回 ps3 控制器和 ps3)控制台,用户可以选择哪个)。然后它会在产品列表中使用此信息。

我认为实现这一点的最简单方法是使用亚马逊等主要零售商的现有 API。我对网站有几个完全不同的想法,其中一个涉及从亚马逊销售(我认为他们会同意),另一个则仅对信息进行数据挖掘。我担心如果我只是窃取他们的图像和描述,他们不会很友善。

有没有另一种方法,也许不那么“偷偷摸摸”的方法来实现这一点,并且不会在法律上受到反对?

I am looking for a method of dynamically linking product information based on the name of the product.

For example: User types in "Playstation 3", the site would then go out and grab any information it can, such as picture, retail price, etc. Ideally, it would let you choose the correct item (returns both ps3 controller and ps3 console, user can choose which). It would then use this information in a product listing.

The easiest way I can think to implement this is to use the existing API of a major retailer such as Amazon. I have a couple completely different ideas for sites, one of which would involve selling from amazon (which I would assume they would be ok with) and another which would only be data mining the information. I am concerned they would not take it very kindly if I was just stealing their images and descriptions.

Is there another way, maybe less "sneaky" way to accomplish this that wouldn't be in legally frowned upon ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

秉烛思 2024-12-17 21:09:51

许多网络商务公司使用称为 API 的数据流 - eBay、Etsy 和 Amazon 都为其产品提供 API 源。如果您可以说服公司允许您访问他们的 API(通常他们会给您密钥/密码),那么您可以直接访问他们的后端数据库,通常是只读级别。根据公司的不同,您可以直接编写它们来访问。

当您说大多数公司不会善待某人从网上抓取其产品目录并重新使用它时,您是正确的。这是不道德的,并且可能会给拥有重要法律地位的大公司带来大麻烦。

另一方面,没有什么可以阻止您将多个 API 提要拼凑成混搭 - 尝试 Yahoo Pipes!了解 API/Mash-Up 集成的基础知识:

Yahoo Pipes:

http://pipes.yahoo.com/pipes /

以下是亚马逊产品广告 API 计划的链接:

https://affiliate-program.amazon.com/gp/advertising/api/detail/main.html

祝你好运,开发愉快!

Many web-commerce companies use a data stream known as an API - EBay, Etsy, and Amazon all have API feeds for their products. If you can convince the company to allow you access to their API (usually they will give you a key/password), then you can directly access their back-end database, typically at the read-only level. Depending on the company, you can just write them directly for access.

You are correct when you say that most companies wouldn't take kindly to someone web-scraping their product directory and re-using it. That is unethical, and could lead to big trouble with larger companies with a significant legal presence.

On the other hand, there is nothing to prevent you from cobbling together several API feeds into a Mash-Up - try Yahoo Pipes! to learn the basics of API/Mash-Up integration:

Yahoo Pipes:

http://pipes.yahoo.com/pipes/

Here is the link to Amazon's Product Advertising API program:

https://affiliate-program.amazon.com/gp/advertising/api/detail/main.html

Good luck, and happy development!

南风起 2024-12-17 21:09:51

许多在线零售商提供产品提要 - 要么是广为人知的(William MB 列出了一些例子),要么是有点隐藏,用于联属营销的目的。他们通常会围绕这些产品提要制定使用条款,详细描述您可以使用它们做什么,以及如果您不遵守他们的规则,您的肢体有多少会面临风险。

然而,您所描述的机制听起来与搜索引擎非常相似;搜索引擎对网站进行索引并使用其内容来推理基础网站有一个既定的先例。请律师来验证这一点,但您的预期目的很可能属于“合理使用”。

Many online retailers provide a product feed - either well-publicized (William M-B has listed some examples), or sorta-kinda hidden, for the purposes of affiliate marketing. They usually have terms of use around those product feeds, describing in detail what you're allowed to do with them, and exactly how many of your limbs are at risk if you don't play by their rules.

However, the mechanism you're describing sounds remarkably similar to a search engine; there's a well-established precedent for search engines indexing sites, and using their content to reason about the underlying site. Get a lawyer to validate this, but there's a good chance that your intended purpose falls under "fair use".

大姐,你呐 2024-12-17 21:09:51

我是 http://aerse.com 的代表。

我们正在构建服务,执行以下操作:

I'm representative of http://aerse.com.

We are building service, that do the following:

  • search product by name. For example: galaxy s3, galaxy s 3 or galaxy sIII
  • return technical specifications (CPU, RAM etc) and product images (thumbnails and high-res images)
  • provide API http://aerse.com/p
  • deal with legal issues, provide licenses & etc.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文