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

get_page_info error: Facebook served mbasic/noscript content unexpectedly on {response.url}

Open joshTheECE opened this issue 2 years ago • 9 comments

Hi, I am trying to extract the about info of pages using the following lines of code:

from facebook_scraper import get_page_info get_page_info('CocoonsMillennialResorts', cookies='cookies.txt')

and gets the following error:

UserWarning: Facebook served mbasic/noscript content unexpectedly on https://m.facebook.com/page_content_list_view/more/?page_id=102651475346745&start_cursor=%7B%22timeline_cursor%22:null,%22timeline_section_cursor%22:null,%22has_next_page%22:true%7D&num_to_fetch=4&surface_type=posts_tab f"Facebook served mbasic/noscript content unexpectedly on {response.url}"

joshTheECE avatar Aug 19 '21 08:08 joshTheECE

This isn't an error, just a warning. Did the function return results?

neon-ninja avatar Aug 19 '21 09:08 neon-ninja

Yes it did return results. Thanks. However some do not have the about info.

joshTheECE avatar Aug 19 '21 09:08 joshTheECE

Which pages didn't return about info?

neon-ninja avatar Aug 19 '21 17:08 neon-ninja

@neon-ninja i get this warnings and keeps showing on the console without stop,how can i stop a script if this warnings are non-stoping?

l0rtk avatar Dec 15 '21 10:12 l0rtk

CTRL-C should do it

neon-ninja avatar Dec 15 '21 10:12 neon-ninja

CTRL-C should do it

Yes but if i have script that's runs over the array of facebook id's and scrapes their profile posts and i want break code if many warning occures and continue to other id what can i do then?

l0rtk avatar Dec 15 '21 10:12 l0rtk

This warning is safe to ignore, unless data are missing. Are you experiencing some other problem related to this warning?

neon-ninja avatar Dec 19 '21 23:12 neon-ninja

Hello, I have the same message and it does not return any data at all. Also trying to scrape posts from a group using get_posts. I also noticed that if "allow_extra_requests": True, it simply does not get anything, as in it executes the cell but does not get any data. thank you

lorellav avatar Jul 22 '22 10:07 lorellav

@lorellav Try pass cookies as per the readme

neon-ninja avatar Jul 25 '22 21:07 neon-ninja