kevinzg / facebook-scraper

Scrape Facebook public pages without an API key
MIT License
2.41k stars 631 forks source link

Doesnt work #162

Closed quant-ru closed 3 years ago

quant-ru commented 3 years ago
for post in get_posts(names[0], pages=1):
    print(post['text'][:50])

error: HTTPError: 404 Client Error: Not Found for url: https://mobile.facebook.com/3624096454312871/posts/?_rdc=1&_rdr&refsrc=https%3A%2F%2Fm.facebook.com%2F3624096454312871%2Fposts%2F

It somehow creating wrong url

balazssandor commented 3 years ago

many pages don't have /posts path recently

quant-ru commented 3 years ago

Where is this file that creates a link to scrap? Its possible to just change it.

GivenToFlyCoder commented 3 years ago

Have the same error. HTTPError: 404 Client Error: Not Found for url: https://m.facebook.com/............................/posts/

Mohamed01555 commented 3 years ago

how to solve this issue?

Mohamed01555 commented 3 years ago

Where is this file that creates a link to scrap? Its possible to just change it.

please tell me the file should be fixed

quant-ru commented 3 years ago

Yes, only thing I need is to change link creator. Many pages now don't have /posts path so I just need to delete it

Mohamed01555 commented 3 years ago

Now I have many files such that extractor.py, facebook_scrapper.py .. etc, which of these files should I modify link creator?

kevinzg commented 3 years ago

Should be fixed with #170. Try with latest version.