>>> for row in rows: ... print({ ... "plan": row.xpath('normalize-space(./td[1])').get(), ... "price": row.xpath('normalize-space(./td[2])').get(), ... }) ... {'plan': 'Starter Plan', 'price': '$29'} {'plan': 'Team Plan', 'price': '$79'} {'plan': 'Enterprise Plan', 'price': '$199'}