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

Unsupported browser issue...

Open dray-cyber opened this issue 2 years ago • 1 comments

`from facebook_scraper import get_posts

def scrape_posts(user_id): post_urls = [] for post in get_posts(user_id): if 'post_url' in post: post_urls.append(post['post_url']) return post_urls

target_user = input("Enter target user ID: ") post_urls = scrape_posts(target_user)

print("Post URLs:") for url in post_urls: print(url) This is the error:UserWarning: Facebook says 'Unsupported Browser' warnings.warn(f"Facebook says 'Unsupported Browser'")`

dray-cyber avatar Feb 06 '23 03:02 dray-cyber

Warnings are not the same as errors. Your code should run fine, just wait for a couple of seconds and the scraper will run automatically.

ReemOmer avatar Feb 13 '23 04:02 ReemOmer