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

Getting None post_id for some posts.

Open mohit2jain opened this issue 2 years ago • 2 comments

I get failure on printing post_id for some posts(not all) from a page:

for post in get_posts(account, pages=3, cookies=cookies_file):
    index += 1
    print('Post ' + str(index) + " Post ID: " + post['post_id'])

TypeError: can only concatenate str (not "NoneType") to str

Is there anything I can do to fix this? or is it expected?

mohit2jain avatar Aug 31 '22 05:08 mohit2jain

me too. i get some post id like this id":"pfbid0359e2GyNoQjVZqSKTjd6UYscE3SwPWuPa3SdZyKsyg4q4WfWV475x3eTNmvNjFGFcl"

DarinKumarnsit avatar Nov 18 '22 05:11 DarinKumarnsit

Hello, can you find a solution? I have the same problem

FlorenciaBCabrera avatar Feb 24 '23 01:02 FlorenciaBCabrera