diff --git a/facebook_scraper/facebook_scraper.py b/facebook_scraper/facebook_scraper.py index 9fa78cd1..63a9459d 100755 --- a/facebook_scraper/facebook_scraper.py +++ b/facebook_scraper/facebook_scraper.py @@ -642,7 +642,7 @@ def get_page_info(self, page, **kwargs) -> Profile: url = f'/{page}/' logger.debug(f"Requesting page from: {url}") resp = self.get(url) - result["id"] = re.search(r'pageID:"(\d+)"', resp.html.html).group(1) + result["id"] = re.search(r'pages/transparency/(\d+)', resp.html.html).group(1) result["name"] = resp.html.find("title", first=True).text.replace(" - Home", "") desc = resp.html.find("meta[name='description']", first=True) ld_json = None