`i’m install facebook-scraper but it can not run

from facebook_scraper import get_groups_by_search

groups = get_groups_by_search("Python")

for group in groups:
    print("Group Name:", group['name'])
    print("Group ID:", group['id'])
    print("Group URL:", group['url'])
    print("Description:", group['description'])
    print("Member Count:", group['member_count'])
    print("------------")

end it is bug, i run with terminal python demo.py

Traceback (most recent call last):
  File "D:MyJobPythonPyCharmai-reportdemo.py", line 7, in <module>
    for group in groups:
  File "D:MyJobPythonPyCharmai-report.venvlibsite-packagesfacebook_scraperfacebook_scraper.py", line 1125, in get_groups_by_search
    r = self.get(group_search_url)
  File "D:MyJobPythonPyCharmai-report.venvlibsite-packagesfacebook_scraperfacebook_scraper.py", line 880, in get
    response.raise_for_status()
  File "D:MyJobPythonPyCharmai-report.venvlibsite-packagesrequestsmodels.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://m.facebook.com/search/groups/?q=Python

when i click link https://m.facebook.com/search/groups/?q=Python it have result

New contributor

Tran Huu Hieu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

5

Khám phá các thẻ bài đăng