![Facebook Search avatar](https://images.apifyusercontent.com/Z1ErAZTFS9Jtni9TXI58BBS4WIosAMBwhsdBKmENUPs/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMudXMtZWFzdC0xLmFtYXpvbmF3cy5jb20veFNld0xDaERjQWsxaE5oZ2EveHc0ZUhia2xDRllpOEJ3RDUtZGFuZWs2OTQ1X2Zhc3RfZmFjZWJib2tfZXZlbnRzX3NjcmFwZXJfaWNvbl83ZjM5OGM1OC1kNDNlLTQ0M2YtYQ.webp)
3 days trial then $14.99/month - No credit card required now
![Facebook Search](https://images.apifyusercontent.com/Z1ErAZTFS9Jtni9TXI58BBS4WIosAMBwhsdBKmENUPs/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMudXMtZWFzdC0xLmFtYXpvbmF3cy5jb20veFNld0xDaERjQWsxaE5oZ2EveHc0ZUhia2xDRllpOEJ3RDUtZGFuZWs2OTQ1X2Zhc3RfZmFjZWJib2tfZXZlbnRzX3NjcmFwZXJfaWNvbl83ZjM5OGM1OC1kNDNlLTQ0M2YtYQ.webp)
Facebook Search
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.
Failed run
Closed
The runs fail....
inversive_media
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](https://apify-image-uploads-prod.s3.us-east-1.amazonaws.com/mEcK3fkgeNDHt6TiZ/732SceGDwnJtliGRm-polandball.png)
Hello, thanks for reporting, I'm looking into it!
![danek avatar](https://apify-image-uploads-prod.s3.us-east-1.amazonaws.com/mEcK3fkgeNDHt6TiZ/732SceGDwnJtliGRm-polandball.png)
Could you provide a bit more context? Did you use proxy?
inversive_media
Yes, different ones actually, residential and datacenter
![danek avatar](https://apify-image-uploads-prod.s3.us-east-1.amazonaws.com/mEcK3fkgeNDHt6TiZ/732SceGDwnJtliGRm-polandball.png)
Okay, I found an issue, working on solution now
inversive_media
thanks!
inversive_media
Can I ask: which public search url are you using for the results?
![danek avatar](https://apify-image-uploads-prod.s3.us-east-1.amazonaws.com/mEcK3fkgeNDHt6TiZ/732SceGDwnJtliGRm-polandball.png)
what do you mean?
inversive_media
https://www.facebook.com/search/top?q="amsterdam" <- that url doesn't work for not logged in users
![danek avatar](https://apify-image-uploads-prod.s3.us-east-1.amazonaws.com/mEcK3fkgeNDHt6TiZ/732SceGDwnJtliGRm-polandball.png)
I need to keep it as secret, but I'm using a few tricks to bypass this ;)
![danek avatar](https://apify-image-uploads-prod.s3.us-east-1.amazonaws.com/mEcK3fkgeNDHt6TiZ/732SceGDwnJtliGRm-polandball.png)
Okay, issue is now fixed, facebook changed things again... :(
Now it should work again.
inversive_media
let me try again! Thanks!
Update: it works!
inversive_media
Is there a way to sort on most recent?
![danek avatar](https://apify-image-uploads-prod.s3.us-east-1.amazonaws.com/mEcK3fkgeNDHt6TiZ/732SceGDwnJtliGRm-polandball.png)
I will implement sorting shortly (tomorrow should be deployed)
![danek avatar](https://apify-image-uploads-prod.s3.us-east-1.amazonaws.com/mEcK3fkgeNDHt6TiZ/732SceGDwnJtliGRm-polandball.png)
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!
inversive_media
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](https://apify-image-uploads-prod.s3.us-east-1.amazonaws.com/mEcK3fkgeNDHt6TiZ/732SceGDwnJtliGRm-polandball.png)
As I mentioned, facebook really doesn't allow to sort or manipulate results in any meaningful way :(
- 122 monthly users
- 14 stars
- 100.0% runs succeeded
- 6.8 hours response time
- Created in Apr 2024
- Modified 15 days ago