Skip to content

Commit

Permalink
[facebook] fix creation date and history
Browse files Browse the repository at this point in the history
  • Loading branch information
naisanzaa committed Jan 17, 2025
1 parent ae95545 commit 364ec64
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions automon/integrations/facebook/groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class FacebookGroups(object):
'/html/body/div[1]/div/div[1]/div/div[3]/div/div/div[1]/div[1]/div[4]/div/div/div/div/div/div[4]/div/div/div/div/div/div[2]/div/div[3]/div/div/div[2]/div',
'/html/body/div[1]/div/div/div[1]/div/div[3]/div/div/div[1]/div[1]/div[4]/div/div/div/div/div/div[3]/div/div/div/div/div/div[2]/div/div[3]/div/div/div[2]',
]
_xpath_history = '/html/body/div[1]/div/div[1]/div/div[3]/div/div/div[1]/div[1]/div[4]/div/div/div/div/div/div[1]/div/div/div/div/div/div[2]/div[2]/div[3]/div/div/div[2]/div/div[2]'
_xpath_history = '/html/body/div[1]/div/div/div[1]/div/div[3]/div/div/div[1]/div[1]/div[4]/div/div/div/div/div/div[1]/div/div/div/div/div/div[2]/div[2]/div[3]/div/div/div[2]/div/div[2]/span/span'
_xpath_members = [
'/html/body/div[1]/div/div/div[1]/div/div[3]/div/div/div[1]/div[1]/div[4]/div/div/div/div/div/div[3]/div/div/div/div/div/div[2]/div/div[2]/div/div/div[2]/div/div[1]',
'/html/body/div[1]/div/div/div[1]/div/div[3]/div/div/div[1]/div[1]/div[4]/div/div/div/div/div/div[3]/div/div/div/div/div/div[2]/div/div[2]/div/div/div[2]/div/div[1]/span',
Expand Down Expand Up @@ -217,8 +217,7 @@ def creation_date(self):

if not element:
re_matches = [
'Created [0-9]+ year[s]? ago',
'Group created on [a-zA-Z]+ [0-9]+, [0-9]+',
'Created \d+ year[s]? ago',
]

for re_match in re_matches:
Expand Down Expand Up @@ -381,7 +380,6 @@ def history(self):
if not element:
known_elements = [
'Group created on \w+ \d+, \d+',
'Created \d+ year[s] ago',
]

for known in known_elements:
Expand Down

0 comments on commit 364ec64

Please sign in to comment.