Facebook Posts Scraper avatar

Facebook Posts Scraper

Try for free

3 days trial then $9.99/month - No credit card required now

View all Actors
Facebook Posts Scraper

Facebook Posts Scraper

danek/facebook-posts-fast
Try for free

3 days trial then $9.99/month - No credit card required now

Scrap Facebook posts fast and easy. This actor is a lightweight version of the Facebook Posts actor. It is designed to be fast and efficient, so it can extract a large number of events for low price. It is also less likely to be blocked by Facebook.

SM

always failed for some profile

Closed

snazzy_monument opened this issue
2 months ago

2024-09-21T10:01:27.786Z ERROR Actor failed with an exception 2024-09-21T10:01:27.833Z File "/usr/src/app/src/fb_minimal_post_parser.py", line 241, in __parse_post 2024-09-21T10:01:27.844Z timestamp = metadata['creation_time'] 2024-09-21T10:01:27.847Z ~~~~~~~~^^^^^^^^^^^^^^^^^ 2024-09-21T10:01:27.849Z KeyError: 'creation_time'

it seems that the actor want to get the 'creation_time' value but it doesn't exists.

danek avatar

Hello! Thanks for that report. I will check it.

Sorry for long response time, I was on holiday

SM

snazzy_monument

2 months ago

thx for your work. hope it can be fixed.

danek avatar

it's fixed now

SM

snazzy_monument

2 months ago

I tried at once. It seems the actor still throw exception as follows and I can't get the posts of the channel.

File "/usr/src/app/src/fb_minimal_post_parser.py", line 214, in __get_posts_from_page 2024-09-23T10:09:15.683Z node = edge['data']['node']['timeline_list_feed_units']['edges'][0]['node'] 2024-09-23T10:09:15.685Z ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^ 2024-09-23T10:09:15.687Z IndexError: list index out of range

danek avatar

sure, can you give me your input?

SM

snazzy_monument

2 months ago

{ "max_posts": 10, "max_retries": 5, "proxy": { "useApifyProxy": true, "apifyProxyGroups": [ "RESIDENTIAL" ] }, "urls": [ { "url": "https://www.facebook.com/globaltimesnews" } ] }

danek avatar

It was bug due to recent FB changes. I will monitor this but let me know if there will be any issues in future! It should be fixed in 1.5.17

SM

snazzy_monument

2 months ago

It still failed to scrape the posts with the latest release. could you tell me how to make this work

https://console.apify.com/view/runs/gFn8eVfjgT7kUqzQ1

danek avatar

You can try now

SM

snazzy_monument

2 months ago

thanks, I will try it now

SM

snazzy_monument

2 months ago

still failed... please have a look at the run detail https://console.apify.com/view/runs/EQ5b0dl4WntDCLcgg

danek avatar

okay, my bad. Now it should push data correctly

SM

snazzy_monument

2 months ago

the results are still too less than the posts in the channel. I tried to fetch 2000 posts from the channel, while only 84 posts were fetched. There're nearly thound results from 09-01 to now. how can I get enough results? thx

SM

snazzy_monument

2 months ago

you can try to run the actor with the input in sample, you will find the failed result.

danek avatar

could you post link to run?

danek avatar

I added a few more checks, you can try now

SM

snazzy_monument

2 months ago

It works perfectly now. thanks a lot.

Developer
Maintained by Community
Actor metrics
  • 53 monthly users
  • 9 stars
  • 100.0% runs succeeded
  • 7.6 hours response time
  • Created in Mar 2024
  • Modified 13 days ago