Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var tr = soup.find_all("tr")
- var obj = {}
- for thistr in tr:
- var td = thistr.find_all('td') #You're using bs4's methods here now.
- 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