确定10位数字字符串是否有效的Amazon ASIN

编程入门 行业动态 更新时间:2024-10-14 16:24:09
本文介绍了确定10位数字字符串是否有效的Amazon ASIN的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个10位数字的字符串传递给我,我想在执行更多处理和/或重定向之前确认它是有效的ASIN。

I have a 10 digit string being passed to me, and I want to verify that it is a valid ASIN before doing more processing and/or redirection.

I知道非ISBN ASIN将始终为非数字且长度为10个字符

I know that a non ISBN ASIN will always be non-numeric and 10 characters in length

我只是想知道所传递的项目是否为有效的ASIN或

I just want to be able to tell if the item being passed is a valid ASIN or is it just a search string after I have already eliminated that it could be a ISBN.

例如, SOUNDBOARD是一个搜索词,而 B000J5XS3C是一个ASIN,

For example "SOUNDBOARD" is a search term while "B000J5XS3C" is an ASIN and "1412775884" is an ISBN.

是否有一种轻巧的方式来检查ASIN?

Is there a lightweight way to check ASIN?

推荐答案

您是否知道Amazon提供了API(包括Amazon Associates Web Service),您可以通过该API与Amazon进行编程交互。我怀疑这会(以某种方式)解决您的问题。请访问 Amazon Web Services 主页以获取更多信息。

Did you know that Amazon offers an API, including an Amazon Associates Web Service, that allows you to interactive programatically with Amazon. I suspect that will solve your problem (in some fashion). Check out the Amazon Web Services home page for more info.

更多推荐

确定10位数字字符串是否有效的Amazon ASIN

本文发布于:2023-11-29 16:05:10,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1646887.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:字符串   数字   Amazon   ASIN

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!