quanteda / readtext

an R package for reading text files
https://readtext.quanteda.io
120 stars 28 forks source link

readtext(source+"twitter") for tweets from 2016 #161

Closed sagarkumar16 closed 4 years ago

sagarkumar16 commented 4 years ago

Hello, I'm trying to load a tweet body from a tweet stream that was collected in 2016 and whenever I try to run the readtext() function with "twitter" as the source, I get the error:

test_tweets = readtext("filepath/file.json", source = "twitter") Error in value[3L] : Doesn't look like Tweets JSON file, trying general JSON.

kbenoit commented 4 years ago

Would be happy to help but we need to be able to reproduce the error. Can you send a few records from your file?

sagarkumar16 commented 4 years ago

Yes, I'd be happy to - here you are. They've been changed from .json to .txt because Github doesn't support .json files.

test.txt 2016-10-03.txt

amatsuo commented 4 years ago

These two files do not generate an error...