crawl the name and price of each product from e-commerce websites in Taiwan.
Project description
papaprice
爬MOMO、PCHOME、ETMALL、SHOPEE、YAHOO 商品名稱與價格
from papaprice import Etmall, Momo, Pchome, Shopee, Yahoo
# https://www.etmall.com.tw/i/2886010
etmall = Etmall()
print('etmall', etmall.query('2886010'))
# etmall ('Apple iPhone 12 Pro 128G 智慧型 5G 手機', 32388)
# https://www.momoshop.com.tw/goods/GoodsDetail.jsp?i_code=8169274
momo = Momo()
print('momo', momo.query('8169274'))
# momo ('【Apple 蘋果】iPhone 12 Pro 128G 6.1吋(超值殼貼組)', 33000)
# https://24h.pchome.com.tw/prod/DYAJIM-A900B724R
pchome = Pchome()
print('pchome', pchome.query('DYAJIM-A900B724R'))
# pchome ('Apple iPhone 12 Pro (128G)-太平洋藍(MGMN3TA/A)', 32900)
# https://shopee.tw/--i.54598032.5857088290
shopee = Shopee()
print('shopee', shopee.query('54598032.5857088290'))
# shopee ('APPLE iPhone 12 Pro 128G 支援5G上網/A14 CPU 送門市現場保貼服務兌換券', 32940)
# https://tw.buy.yahoo.com/gdsale/-9205108.html
yahoo = Yahoo()
print('yahoo', yahoo.query('9205108'))
# yahoo ('Apple iPhone 12 PRO 128G 6.1吋智慧型手機', 32600)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
papaprice-0.0.5.tar.gz
(5.5 kB
view details)
Built Distribution
File details
Details for the file papaprice-0.0.5.tar.gz
.
File metadata
- Download URL: papaprice-0.0.5.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c673dd9c6b2bfb90f1c45179e5ff589d378ca9a2f1700db4b2291128b34732f |
|
MD5 | b9b70e2c7d39ae080e0a3419439fe564 |
|
BLAKE2b-256 | 895ec700593c8ea4a0cc4f4f96b6f2ecd3fe3a04ff5b831ba2d1af2c8b8231e8 |
File details
Details for the file papaprice-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: papaprice-0.0.5-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13057d96ae3cace59bb3b63156a3d5eb9122595e777c2c1594c948b714e2f23d |
|
MD5 | 60297a616bae5bcef0366d94d401cd37 |
|
BLAKE2b-256 | 85d73cb75e6e298afcfcacd72fcea37c003e899b8fb71bcf94ebb2b9b307b2e1 |