hrbrmstr / newsflash

Tools to Work with the Internet Archive and GDELT Television Explorer in R
90 stars 9 forks source link

maxresults = 3000L #17

Open yonoklee opened 3 years ago

yonoklee commented 3 years ago

Many thanks for the package!

I noticed query_tv returns about 30 results most of time when I use 'ClipGallery' mode

Initial try was to increase 3000L to a larger number: if (mode == "ClipGallery") query$maxresults <- 3000L this did not seem to work

When I tried the line below, based on the actual link if (mode == "ClipGallery") query$maxrecords = 100L # 3000L original code

https://api.gdeltproject.org/api/v2/tv/tv?format=html&timespan=FULL&last24=yes&query=autism%20(station:CNN%20OR%20station:FOXNEWS%20OR%20station:MSNBC%20)%20&mode=clipgallery&sort=datedesc&maxrecords=5000&format=json

an error massage popped up: Error : lexical error: inside a string, '\' occurs before a character which it may not. neral, they can go to cnn.com\impact and make a difference. (right here) ------^ pointing . [cnn.com] in the line above