Return only the first child of this Tag matching the given criteria.
(self, name=None, attrs={}, recursive=True, text=None,
**kwargs)
| 822 | #Soup methods |
| 823 | |
| 824 | def find(self, name=None, attrs={}, recursive=True, text=None, |
| 825 | **kwargs): |
| 826 | """Return only the first child of this Tag matching the given |
| 827 | criteria.""" |
| 828 | r = None |
| 829 | l = self.findAll(name, attrs, recursive, text, 1, **kwargs) |
| 830 | if l: |
| 831 | r = l[0] |
| 832 | return r |
| 833 | findChild = find |
| 834 | |
| 835 | def findAll(self, name=None, attrs={}, recursive=True, text=None, |