Facebook Search avatar

Facebook Search

Try for free

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

View all Actors
Facebook Search

Facebook Search

danek/facebook-search-rental
Try for free

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

Scrap Facebook search results fast and easy. It is designed to be fast and efficient, so it can extract a large number of results for low price. It is also less likely to be blocked by Facebook.

IM

Failed run

Closed

inversive_media opened this issue
8 months ago

The runs fail....

IM

inversive_media

8 months ago

2024-04-03T17:38:38.125Z ERROR Actor failed with an exception 2024-04-03T17:38:38.128Z Traceback (most recent call last): 2024-04-03T17:38:38.130Z File "/usr/local/lib/python3.11/site-packages/requests/models.py", line 971, in json 2024-04-03T17:38:38.132Z return complexjson.loads(self.text, **kwargs) 2024-04-03T17:38:38.134Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2024-04-03T17:38:38.137Z File "/usr/local/lib/python3.11/json/init.py", line 346, in loads 2024-04-03T17:38:38.139Z return _default_decoder.decode(s) 2024-04-03T17:38:38.141Z ^^^^^^^^^^^^^^^^^^^^^^^^^^ 2024-04-03T17:38:38.143Z File "/usr/local/lib/python3.11/json/decoder.py", line 340, in decode 2024-04-03T17:38:38.145Z raise JSONDecodeError("Extra data", s, end) 2024-04-03T17:38:38.147Z json.decoder.JSONDecodeError: Extra data: line 2 column 1 (char 454104) 2024-04-03T17:38:38.149Z 2024-04-03T17:38:38.151Z During handling of the above exception, another exception occurred: 2024-04-03T17:38:38.153Z 2024-04-03T17:38:38.155Z Traceback (most recent call last): 2024-04-03T17:38:38.157Z File "/usr/src/app/src/main.py", line 35, in main 2024-04-03T17:38:38.159Z results_count = await parser.search(query=query, search_type=search_type) 2024-04-03T17:38:38.161Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2024-04-03T17:38:38.163Z File... [trimmed]

danek avatar

Hello, thanks for reporting, I'm looking into it!

danek avatar

Could you provide a bit more context? Did you use proxy?

IM

inversive_media

8 months ago

Yes, different ones actually, residential and datacenter

danek avatar

Okay, I found an issue, working on solution now

IM

inversive_media

8 months ago

thanks!

IM

inversive_media

8 months ago

Can I ask: which public search url are you using for the results?

danek avatar

what do you mean?

IM

inversive_media

8 months ago

https://www.facebook.com/search/top?q="amsterdam" <- that url doesn't work for not logged in users

danek avatar

I need to keep it as secret, but I'm using a few tricks to bypass this ;)

danek avatar

Okay, issue is now fixed, facebook changed things again... :(

Now it should work again.

IM

inversive_media

8 months ago

let me try again! Thanks!

Update: it works!

IM

inversive_media

8 months ago

Is there a way to sort on most recent?

danek avatar

I will implement sorting shortly (tomorrow should be deployed)

danek avatar

Unfortunately facebook doesn't allow to sort response. I added "recent posts" toggle, it's the only way how fb allows to manipulate results. I will try to add start/end dates filter as well within next hours/days so stay tuned for updates!

IM

inversive_media

8 months ago

I saw the new build, how can I sort? :-) Keep up the good work!

If I select 'recent post' the most recent post is from: "Wed Jan 31 2024 08:28:27 GMT+0000"

danek avatar

As I mentioned, facebook really doesn't allow to sort or manipulate results in any meaningful way :(

Developer
Maintained by Community

Actor Metrics

  • 84 monthly users

  • 21 stars

  • >99% runs succeeded

  • 1.8 hours response time

  • Created in Apr 2024

  • Modified 23 days ago