Created
July 18, 2018 02:21
-
-
Save c3h3/0fac4740f035c9026e8636b87b75a391 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
from pyquery import PyQuery | |
url = "https://cn.shopbop.com/sale-bags/br/v=1/15355.htm " | |
res =requests.get(url) | |
S = PyQuery(res.text) | |
S("[data-productid]").map(lambda i,e: PyQuery(e).attr("data-productid")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment