facebook_page_scraper icon indicating copy to clipboard operation
facebook_page_scraper copied to clipboard

The csv does not reflect the required number of posts.

Open PatriciaSA opened this issue 3 years ago • 3 comments

Hello, first of all thank you for this very useful code :) I tried to run it requesting 100 posts instead of 10 posts_count =100 and everything runs perfect, but when I open the csv only 5 to 10randomly posts appear, [I have run it several times and the result is random (same posts but different total number each time) but never reaches the 100 required].

PatriciaSA avatar Jan 30 '22 16:01 PatriciaSA

Can you please share the page name that you're trying to scrap so I can re-create the same issue?.

Just to make sure CSV functionality is properly working, I've tried the Meta AI page with 100 posts and it seems to be working. meta.csv

shaikhsajid1111 avatar Jan 31 '22 05:01 shaikhsajid1111

I have been trying with these three pages: GobiernoJalisco GobQuintanaRoo GobiernoGuerrero Maybe I have some error in the code?

`page_name = "GobiernoJalisco" posts_count = 100 browser = "firefox"

facebook_ai = Facebook_scraper(page_name,posts_count,browser)`

filename = "resultado_facebook" directory ="/home/dris" facebook_ai.scrap_to_csv(filename,directory)

PatriciaSA avatar Jan 31 '22 16:01 PatriciaSA

Does it take a long time and give an output of only 5-10 posts?.

Probably this is the problem with the new Modern UI, it is trying to stop the bot. Thank you reporting the issue, I'll look into this issue.

shaikhsajid1111 avatar Feb 01 '22 05:02 shaikhsajid1111