bs4.ResultSet¶
-
class
bs4.
ResultSet
(source, result=())[source]¶ A ResultSet is just a list that keeps track of the SoupStrainer that created it.
Methods¶
__init__ (source[, result]) |
|
append |
L.append(object) – append object to end |
count (...) |
|
extend |
L.extend(iterable) – extend list by appending elements from the iterable |
index ((value, [start, ...) |
Raises ValueError if the value is not present. |
insert |
L.insert(index, object) – insert object before index |
pop (...) |
Raises IndexError if list is empty or index is out of range. |
remove |
L.remove(value) – remove first occurrence of value. |
reverse |
L.reverse() – reverse IN PLACE |
sort |
L.sort(cmp=None, key=None, reverse=False) – stable sort IN PLACE; |