moda20 / facebook-scraper

Scrape Facebook public pages without an API key
MIT License
60 stars 23 forks source link

"No raw posts (<article> elements)" for nhkworld #29

Closed morbus closed 3 months ago

morbus commented 5 months ago

First time user. Python 3.11.6.

Installed with pip install git+https://github.com/moda20/facebook-scraper.git@master.

Used Firefox add-on Cookie Quick Manager to create facebook_cookies.json.

Using the following command: facebook-scraper --format json --filename facebook_nhkworld.json --pages 999999 --verbose --cookies facebook_cookies.json nhkworld --dump facebook-scraper-dump I'm just getting No raw posts (<article> elements) were found in this page. over and over again - like it's going through a pager, but not finding any results. I'm not seeing anything in the dump directory.

UlyssesZh commented 5 months ago

The problem happens to me as well. Facebook must have done a change recently.

UlyssesZh commented 5 months ago

It seems that the CLI is broken. You need to use mbasic.

asheseux16 commented 4 months ago

@morbus Is it solved? I'm getting the same problem and I'm using Jupyter Notebook and mbasic... @moda20

moda20 commented 4 months ago

@UlyssesZh @asheseux16 usually this means that your cookies are not rightfully extracted. you might need to visit all fb website versions to get the full cookies (18 lines usually). another thing would be to create a script instead of using the CLI as the latter is known to not work

moda20 commented 3 months ago

@morbus I am closing this issue since it seems to be resolved. and as of now i am not working on the CLI version