开放ean/gtin数据库的非正式api包装

openean的Python项目详细描述


打开

库以使用open ean/gtin数据库的api

用作this EAN/GTIN database service的api的api包装器

开始

通过pip install openean从pypi安装库

那么您需要服务的用户id;more info how you get that

还有一个小测试的id:“400000000”,如这里所描述的https://opengtindb.org/faq.php#g

fromopenean.OpenEANimportOpenEANuserID=400000000#user your own id hereopenean=OpenEAN(userID)barcode_num=1111#barcode number of you productitems=openean.parse(barcode_num)#items is a list of possible products associated with the code# the properties of each item are described here https://opengtindb.org/api.php#only to show you structure of working results#not needed for usefrompprintimportpprintforiteminitems:pprint(vars(item))

感谢

使这成为可能的api的创建者,如果您希望此服务帮助运行它的数据库的创建者,请考虑捐赠给"Kueste gegen Plastik"

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
Java中的compareToIgnoreCase方法的字符串   javahibernate与资源利用   java渐变wsdl生成   java类奇怪错误   Selenium WebDriver Java我无法从span获取动态文本   java获取父对象,即使子对象不存在   java处理定制Spring验证器绑定到输入字段的LongValue是否为时已晚?   swing在Java中等待线程完成   jakarta内Java归档的ee类路径。JBoss 6.2上web应用程序的ear文件   java使用Jmeter Redis数据集从Redis获取值   java如何修复ExoPlayer视频冻结2.9.6   java无法将JTable添加到GUI中   如何在java中返回到代码的开头   Java打开命令提示符,运行两个命令