Facebook Search avatar
Facebook Search
Try for free

3 days trial then $14.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 $14.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
5 months ago

The runs fail....

IM

inversive_media

5 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 "/usr/src/app/src/fb_minimal_search_parser.py", line 181, in search 2024-04-03T17:38:38.165Z result = self.get_search_results(query=query, search_type=search_types[search_type], cursor=cursor) 2024-04-03T17:38:38.167Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2024-04-03T17:38:38.169Z File "/usr/src/app/src/fb_minimal_search_parser.py", line 171, in get_search_results 2024-04-03T17:38:38.171Z return parse_posts(res) 2024-04-03T17:38:38.173Z ^^^^^^^^^^^^^^^^ 2024-04-03T17:38:38.175Z File "/usr/src/app/src/post_parser.py", line 8, in parse_posts 2024-04-03T17:38:38.177Z res_json = response.json() 2024-04-03T17:38:38.179Z ^^^^^^^^^^^^^^^ 2024-04-03T17:38:38.181Z File "/usr/local/lib/python3.11/site-packages/requests/models.py", line 975, in json 2024-04-03T17:38:38.183Z raise RequestsJSONDecodeError(e.msg, e.doc, e.pos) 2024-04-03T17:38:38.185Z requests.exceptions.JSONDecodeError: Extra data: line 2 column 1 (char 454104)

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

5 months ago

Yes, different ones actually, residential and datacenter

danek avatar

Okay, I found an issue, working on solution now

IM

inversive_media

5 months ago

thanks!

IM

inversive_media

5 months ago

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

danek avatar

what do you mean?

IM

inversive_media

5 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

5 months ago

let me try again! Thanks!

Update: it works!

IM

inversive_media

5 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

5 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
  • 122 monthly users
  • 14 stars
  • 100.0% runs succeeded
  • 6.8 hours response time
  • Created in Apr 2024
  • Modified 15 days ago