{"id":15043159,"url":"https://github.com/breadkid/searchitem","last_synced_at":"2025-04-05T23:10:08.231Z","repository":{"id":130246449,"uuid":"76154162","full_name":"BreadKid/SearchItem","owner":"BreadKid","description":"小搜搜——商品条形码／二维码搜索APP","archived":false,"fork":false,"pushed_at":"2024-10-14T09:38:42.000Z","size":33302,"stargazers_count":109,"open_issues_count":0,"forks_count":17,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-05T23:09:58.420Z","etag":null,"topics":["android-app","butterknife","firebase","java-8","jsoup","retrofit","zxing"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BreadKid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-11T04:30:09.000Z","updated_at":"2024-11-12T14:26:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"b43ddcd0-0da5-4d87-9af9-3133a9f0384a","html_url":"https://github.com/BreadKid/SearchItem","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BreadKid%2FSearchItem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BreadKid%2FSearchItem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BreadKid%2FSearchItem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BreadKid%2FSearchItem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BreadKid","download_url":"https://codeload.github.com/BreadKid/SearchItem/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247411235,"owners_count":20934653,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android-app","butterknife","firebase","java-8","jsoup","retrofit","zxing"],"created_at":"2024-09-24T20:48:39.035Z","updated_at":"2025-04-05T23:10:08.196Z","avatar_url":"https://github.com/BreadKid.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SearchItem\n\n\u003cimg src=\"https://github.com/BreadKid/SearchItem/blob/master/readme_pic/sraech_icon.jpg\" width = \"180\" height = \"180\"/\u003e\n\n商品条形码／二维码搜索 Android APP  \n\n---\n\n### 简述\n*一个轻量的商品条码／二维码扫描工具，并能够实时查询淘宝最低价。*\n\n该应用采用Google Zxing进行条码／二维码的扫描，参考官网与[chentao0707](https://github.com/chentao0707/ZXingProject)的精简代码；取得扫描返回值后用Retrofit进行网络通信，从中国物品编码网查询得到商品的官方信息，该网站接口返回的是一个html，这里通过Jsoup解析；再查询淘宝该商品的最低价(前三名)，解析返回json并处理显示。\n\n中文字体：*NotoSansCJKsc-Light*  \n风格：*Theme.Material.Light.NoActionBar*  \n组件：*cart \u0026\u0026 button*  \n动画：*触摸反馈*\n\n接口来源：(网页接口)  \n\n* [中国商品信息服务平台](http://search.anccnet.com)：该API增加了人机验证，等于接口间接不开放了，请大家另寻免费API\n* [淘宝网](https://www.taobao.com)\n\n--\n### 适用版本\n\n```\nminSdkVersion 21\ntargetSdkVersion 25\n```\n--\n### 第三方组件\n* 网络通信：[Retrofit](https://square.github.io/retrofit/)\n* 网页解析：[Jsoup](https://jsoup.org/)\n* [FireBase](https://firebase.google.com/)： 后台数据分析[Analyses](https://firebase.google.com/docs/analytics/android/start/) \u0026\u0026 实时数据库[Real DataBase](https://firebase.google.com/docs/database/android/start/)\n* 控件绑定：[ButterKnife](http://jakewharton.github.io/butterknife/)\n* 条码／二维码扫描：[Zxing](https://github.com/zxing/zxing)\n\n--\n### 依赖\n\n```\ndependencies {\n    ...\n    \n    // Google zxing扫描\n    compile 'com.google.zxing:zxing-parent:3.3.0'\n    compile files('libs/zxing.jar')\n    // 控件绑定\n    compile 'com.jakewharton:butterknife:7.0.1'\n    // Google FireBase\n    compile 'com.google.firebase:firebase-core:9.8.0'\n    compile 'com.google.firebase:firebase-database:9.8.0'\n    // 网络通信\n    compile 'com.squareup.okhttp3:okhttp:3.4.2'\n    compile 'com.squareup.retrofit2:retrofit:2.0.2'\n    // jsoup HTML parser library @ http://jsoup.org/\n    compile 'org.jsoup:jsoup:1.10.1'\n}\n\n```\n--\n### 权限\n\n```\n    \u003cuses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\" /\u003e\n    \u003cuses-permission android:name=\"android.permission.INTERNET\" /\u003e\n    \u003cuses-permission android:name=\"android.permission.WAKE_LOCK\" /\u003e\n    \u003cuses-permission android:name=\"android.permission.VIBRATE\" /\u003e\n    \u003cuses-permission android:name=\"android.permission.CAMERA\" /\u003e\n```\n--\n### 展示\n\u003cimg src=\"https://github.com/BreadKid/SearchItem/blob/master/readme_pic/Screenshot_2016-12-14-19-21-02-895_com.breadykid.searchitem.png?raw=true\" width = \"202\" height = \"360\"/\u003e   \u003cimg src=\"https://github.com/BreadKid/SearchItem/blob/master/readme_pic/Screenshot_2016-12-14-19-22-26-141_com.breadykid.searchitem.png?raw=true\" width = \"202\" height = \"360\"/\u003e   \u003cimg src=\"https://github.com/BreadKid/SearchItem/blob/master/readme_pic/Screenshot_2016-12-14-19-22-45-163_com.breadykid.searchitem.png?raw=true\" width = \"202\" height = \"360\"/\u003e   \u003cimg src=\"https://github.com/BreadKid/SearchItem/blob/master/readme_pic/Screenshot_2016-12-14-19-22-53-686_com.breadykid.searchitem.png?raw=true\" width = \"202\" height = \"360\"/\u003e\n\n--\n### Bug\n欢迎大家去issue里留言～～～\n\n[![Star History Chart](https://api.star-history.com/svg?repos=BreadKid/SearchItem\u0026type=Timeline)](https://star-history.com/#BreadKid/SearchItem\u0026Timeline)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbreadkid%2Fsearchitem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbreadkid%2Fsearchitem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbreadkid%2Fsearchitem/lists"}