1
$\begingroup$

I'm using Mathematica 11 installed in Ubuntu.

I'm trying to retrieve Twitter data these days. So, I'm using:

twitter = ServiceConnect["Twitter"]

Everything is connecting well and when I use

twitter["UserData", "Username" -> "##TWITTERUSERNAME##"]

I can read the data. However, I'm trying to retrieve data with:

twitter["UserReplies", "Username" -> "##TWITTERUSERNAME##",  MaxItems -> 25]

And I'm getting this repeated several times:

$CharacterEncoding: "The byte sequence {240} could not be interpreted as a character in \
the UTF-8 character encoding."

I tried applying the following, because I thought it was just a simple problem with CharacterEncoding:

$CharacterEncoding = "ASCII"

But nothing's happening and I'm stuck with this. I can't seem to apply any of the commands posted in these examples.

Thank you very much for any answer you could give me.

$\endgroup$
4
  • $\begingroup$ Looks like the specific TWITTER USERNAME has content that is not UTF-8. Can you share with me the TWITTER USERNAME which return such content? $\endgroup$ Commented Apr 24, 2020 at 13:52
  • $\begingroup$ Hi, thank you for your answer! I'm using "elonmusk" as the twitter username. $\endgroup$ Commented Apr 24, 2020 at 15:29
  • $\begingroup$ I am not able to reproduce this. $\endgroup$ Commented Apr 27, 2020 at 13:59
  • $\begingroup$ Can you please provide a query that produces that error? I'm unable to replicate it. Also the output of SystemInformation["Small"]. Thanks $\endgroup$ Commented May 12, 2020 at 0:57

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.