facebook-scraper icon indicating copy to clipboard operation
facebook-scraper copied to clipboard

Following count of the Public Page seems wrong

Open jasonren0403 opened this issue 2 years ago • 1 comments

I am using the 0.2.57 version of facebook-scraper and I want to get the page following & follower stat. I just ran the code below

set_user_agent(
        "Mozilla/5.0 (iPhone; CPU iPhone OS 13_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.4 Mobile/15E148 Safari/604.1")
i = get_page_info(account='Reuters', cookies='./cookies_fb.json')
print(i)

and the output i has got {'Following_count': 53}, instead of 22. I got into your source code, and saw that the following count of the page came from the /{account}?v=following page, (now redirects to timeline/app_collection/ page), and by counting all following elements(by css selector '.item[data-sigil="marea"]') of the page, I can get 22 items! The number count is really confusing here. FB has wrote '53' items but there were '22' items

jasonren0403 avatar Jul 04 '22 11:07 jasonren0403

image facebook-scraper is reading the number in the top right here, which is 53. Some of the pages Reuters is following must not be public.

neon-ninja avatar Jul 20 '22 22:07 neon-ninja