SHOW:
|
|
- or go back to the newest paste.
| 1 | - | var tr = soup.find_all("tr")
|
| 1 | + | tr = soup.find_all("tr")
|
| 2 | - | var obj = {}
|
| 2 | + | obj = {}
|
| 3 | for thistr in tr: | |
| 4 | - | var td = thistr.find_all('td') #You're using bs4's methods here now.
|
| 4 | + | 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. |