facebook-scraper
facebook-scraper copied to clipboard
how can we create this ./mbasicHeaders.json file
can you pls provide a sample python script that work i tested using
from facebook_scraper import get_posts, _scraper import json for post in get_posts('nintendo', base_url="https://mbasic.facebook.com", start_url="https://mbasic.facebook.com/nintendo?v=timeline", pages=3, cookies='trollmcookies.txt'): try: print(post['text'][:20]) print(post) except Exception as e: print(f"Error processing post: {e}")
this code and it doesn't return anything