View difference between Paste ID: uGmzP1fN and HW06JkuU
SHOW: | | - or go back to the newest paste.
1
var tr = soup.find_all("tr")
2
var obj = {}
3-
for (var i=0;i<tr.length;i++) {
3+
for thistr in tr:
4-
	var td = tr[i].find_all('td')
4+
	var td = thistr.find_all('td') #You're using bs4's methods here now.
5-
	obj[tr[i]['data-item-id']] = td[5].string
5+
	obj[thistr['data-item-id']] = td[5].string #still using bs4's ['attrname'] thingy here.