Skip to content

Commit

Permalink
[facebook] fix history
Browse files Browse the repository at this point in the history
  • Loading branch information
naisanzaa committed Jan 15, 2025
1 parent e88e20f commit 8f7e4be
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions automon/integrations/facebook/groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,12 +383,15 @@ def history(self):
'Created [0-9]+ year[s] ago',
]

element = [self._browser.find_all_with_beautifulsoup(
string=known,
case_sensitive=True
) for known in known_elements]
if element:
element = element[0].text
for known in known_elements:
element = self._browser.find_anything_with_beautifulsoup(
match=known,
name='span',
case_sensitive=True,
)

if element:
element = element[0].text

method = 'by SEARCH'

Expand Down

0 comments on commit 8f7e4be

Please sign in to comment.