Post

2 followers Follow
0
Avatar

CSDL compile error contains_any

curl 'https://api.datasift.com/v1/compile?csdl=return { NOT interaction.content contains_any "Opie and anthony, O&A"}&username=lazzarouk&api_key=xyxx'

I got an error with the following message I tried to esacap '&' with \& but that did not work either.

{"error":"We are unable to parse this stream. At line 1 position 65 we were expecting a quote (\")"}

lazzarouk

Official comment

Avatar

It looks like your error is because the & requires URL encoding. The URL encoding for & is %26.

As a warning, that CSDL by itself is going to return a very large amount of data since there are many posts that do not mention "Opie and anthony" or "O&A".

jbreucop
Comment actions Permalink

Please sign in to leave a comment.

1 comment