Skip to content

Instantly share code, notes, and snippets.

@c3h3
Created July 18, 2018 02:21
Show Gist options
  • Save c3h3/0fac4740f035c9026e8636b87b75a391 to your computer and use it in GitHub Desktop.
Save c3h3/0fac4740f035c9026e8636b87b75a391 to your computer and use it in GitHub Desktop.
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