Advertisement
Joeytje50

Untitled

Nov 29th, 2012
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var tr = soup.find_all("tr")
  2. var obj = {}
  3. for thistr in tr:
  4.     var td = thistr.find_all('td') #You're using bs4's methods here now.
  5.     obj[thistr['data-item-id']] = td[5].string #still using bs4's ['attrname'] thingy here.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement