Apr-25-2018, 08:21 PM
(Apr-25-2018, 08:16 PM)ian Wrote: AttributeError: ResultSet object has no attribute 'find'. You're probably treating a list of items like a single item. Did you call find_all() when you meant to call find()?
So even though there's only table, it's still a list of tables that just happens to have only one element. So you can either use
.find()
instead of find_all (like the error suggests), or you can iterate through the one-element list, like so:for each_table in table: print(each_table.find("tbody"))