qbnk/validoo-api-wrapper
最新稳定版本:v0.1.6
Composer 安装命令:
composer require qbnk/validoo-api-wrapper
包简介
Validoo PHP wrapper, based on spec in https://validoo.se/wp-content/uploads/2021/10/GS1_REST_TradeItemInformation_v2.0.pdf
README 文档
README
Scraping GS1 code tables
Code tables are available at https://gs1.se/en/guides/documentation/code-lists/
This seemed to work to scrape any of the code lists pages. Uncomment the "if sweden" whenever you want to scrape only swedish/all values (when that code list has the "only in sweden" column):
let codes = {};
jQuery('table.table-striped.responsive').find('td[data-th="Code value"]').map(function() {
const cell = jQuery(this),
name = cell.next(),
sweden = cell.next().next().next();
//if (sweden.find('span').text() === 'X') {
codes[cell.find('span').text().toLowerCase()] = name.find('span').text();
//}
});
JSON.stringify(codes);
统计信息
- 总下载量: 8k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-04-04