newsflash
newsflash copied to clipboard
Is there a limit of context_keywords in query_tv()?
query_tv("trump", "tax,healthcare,wiretap,wiretaps,wiretapping,obamacare,avoidance,returns", start_date="2017-03-12", end_date="2017-03-13")
Error: lexical error: invalid char in json text.
<!DOCTYPE html> <html lang="en-
(right here) ------^
If I limit to , say "tax,healthcare,wiretap" no error occurs
There's a maximum of 50 characters (imposed by GDELT). Also, don't forget to specify timespan="custom"
, otherwise it defaults to timespan="all"
even when you pass a start_time
and end_time
@hrbrmstr perhaps this limit should be added as a stopping condition before the query is sent to the api.
Thanks. for swift response It might help to get both these points in vignette
aye. agreed that a check is needed. and i've been meaning to change the behaviour of how the timespan
setting works. ah, the perils of releasing quick wrapper pkg and retrofitting it for production use :-)