Return only the first child of this Tag matching the given criteria.
(self, name=None, attrs={}, recursive=True, text=None,
**kwargs)
| 1231 | #Soup methods |
| 1232 | |
| 1233 | def find(self, name=None, attrs={}, recursive=True, text=None, |
| 1234 | **kwargs): |
| 1235 | """Return only the first child of this Tag matching the given |
| 1236 | criteria.""" |
| 1237 | r = None |
| 1238 | l = self.find_all(name, attrs, recursive, text, 1, **kwargs) |
| 1239 | if l: |
| 1240 | r = l[0] |
| 1241 | return r |
| 1242 | findChild = find |
| 1243 | |
| 1244 | def find_all(self, name=None, attrs={}, recursive=True, text=None, |