作为剁手党,必须得有个方便的工具来愉快的剁手~
### Rely
python 3.5+
[click](http://click.pocoo.org/6)
[prettytable](https://pypi.python.org/pypi/PrettyTable)
[bs4](https://pypi.python.org/pypi/beautifulsoup4)
[selenium](www.seleniumhq.org/)
### Install
**通过pip3**
```bash
$ sudo pip3 install hands_chopping
```
**或者本地安装**
```bash
$ git clone https://github.com/ecmadao/Hands-Chopping
$ cd Hands-Chopping-master
$ sudo python3 setup.py install
```
### Usage
```bash
$ goods
# example
$ goods —site=jd # 仅搜索京东
$ goods —site=tb # 仅搜索淘宝
```
### Help
```python
Usage:
$ goods [--site= all | jd | tb]
Options:
--site: 要搜索的网站,jd-京东,tb-淘宝,默认全部
Examples:
$ goods --site=jd
$ goods
```
### Notes
- 目前支持淘宝/京东的搜索
- 输入goods会提示输入关键字,多个关键字之间使用空格分隔
- 搜索完成后可进入下一步操作,根据提示,输入商品编号。多个编号间使用`,`链接,则可打开浏览器窗口进入到商品详情页
### TODO
- [x] ~~测试得加上,目前CI一直爆。但仅仅因为没有测试,实际没有影响~~
- [ ] 商品排序(按照金额等)
- [ ] 现阶段只抓取了第一页的商品。之后考虑抓取多页
- [ ] more unittest
- [ ] 容错
- [ ] 没有数据
- [ ] 数据结构有变
- [ ] 更多配置
- [ ] 爬取速度
- [ ] 爬取页数
Metadata
Release files for hands_chopping 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hands_chopping-0.3.0.tar.gz | 7.1 kB | Without provenance | Details for hands_chopping-0.3.0.tar.gz |
Release files / hands_chopping-0.3.0.tar.gz
| Download URL | hands_chopping-0.3.0.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ff43b201a11bca7537eba19eb01016c7e41c85cb64741d5a5bd7f5bba3e999d6
|
|
BLAKE2b-256 checksum How to use checksums |
4eb4175d1114e50a74c8d608e6cc5af1caabd8632a4356898c943bba92d2b3a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for hands_chopping 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.