kevinzg/facebook-scraper

WARNING:facebook_scraper.page_iterators:No raw posts (<article> elements) were found in this page.

lemontea87 opened this issue · 7 comments

i use gg colab and connect gg drive
FANPAGE_LINK ="VolleyballWorld"
FOLDER_PATH = "/content/drive/MyDrive/baikiemtrapython/"
COOKIE_PATH = "/content/drive/MyDrive/baikiemtrapython/www.facebook.com_cookies (9).txt"

PAGES_NUMBER = 10 # Number of pages to crawl
post_list = []
for post in get_posts(FANPAGE_LINK,
options={"comments": True, "reactions": True, "allow_extra_requests": True},
extra_info=True, pages=10, cookies=COOKIE_PATH):
post_list.append(post)
really need help :((

the same problem, moda20 did not help

moda20 commented

@mikhalko please post the example you used with my repo, i can't know what "did not help" mean

Hi.

Your source in page_iterators.py line 152: page = self._get_page('article[data-ft*="top_level_post_id"]', 'article') if (len(page) == 0): page = self._get_page('article[data-ft]', 'article') return PageClass(page, self.get_page_info())

But now there is no 'article[data-ft' in FB pages (mobile, no login, Public Page)
And as result 0 Posts ((((

But if close login form and scroll down , page posts will apear

moda20 commented

@mikhalko this repo and my fork uses mbasic to parse, check the readme on my repo to see how to get it to run correctly

@moda20 Thanks for response. There is a problem. It is impossible to open mbasic url without login.
Try to open https://mbasic.facebook.com/nintendo?v=timeline

FB ask to login(((

moda20 commented

@mikhalko yeah, i believe mbasic needs logins for everything. if you can't use credentials of cookies then i think
you should try this repo, it does most things but without logins needed : https://github.com/shaikhsajid1111/facebook_page_scraper