MBPPrice
MBPPrice用來抓取二手Macbook Pro的價格和相關資訊
Setup
pip install mbpprice
Utility
# 搜尋 PTT 二手 Macbook Pro 資訊
python3 -m mbpprice search ptt
Example
from mbpprice.search import MBPSearch
results = MBPSearch('ptt').list(limit=10)
for (i, item) in enumerate(results):
print('{:03d}: {}'.format(i, item['url']))
print('價格: {}'.format(item['price']))
print(
'年份: {} / 螢幕尺寸: {} / 電池循環: {}'.format(item['year'], item['screen'], item['bat_count']))
print(
'CPU: {} / RAM: {} / 硬碟容量: {}'.format(item['cpu'], item['ram'], item['hdd']))
print()
Metadata
Release files for mbpprice 0.0.3
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 |
|---|---|---|---|---|
| mbpprice-0.0.3.tar.gz | 3.2 kB | Without provenance | Details for mbpprice-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mbpprice-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for mbpprice-0.0.3-py3-none-any.whl |
Total release size: 8.0 kB
Release files / mbpprice-0.0.3.tar.gz
| Download URL | mbpprice-0.0.3.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
66e5ea26519f5d857affad204da8f18715f8132ce3c69b4fcf50ae971e3eb601
|
|
BLAKE2b-256 checksum How to use checksums |
6032308c39b460f540757dec386b33a517502b74599e6a77137de5d6bfbdddb8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.0
|
Release files / mbpprice-0.0.3-py3-none-any.whl
| Download URL | mbpprice-0.0.3-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1ef82c360ce0f0a021806075197d9689ed09a413dab5f7316e3d6093a1c7bd8f
|
|
BLAKE2b-256 checksum How to use checksums |
27cd6bd509f183c5ddb54da29c321b12e834ad78667a4088b0dacbe2385dc287
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.0
|
Security for mbpprice 0.0.3
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.