Skip to main content

second hand macbook pro price in Taiwan.

Project description

MBPPrice

image image

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()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for mbpprice, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size mbpprice-0.0.3-py3-none-any.whl (4.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size mbpprice-0.0.3.tar.gz (3.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page