entities.url is NULL #332
-
Hi, I was searching for some tweets related to traveling to the US. But in the results, entities.url is NULL for many entries. I can accept it to be NULL if it's location but I think every tweet must at least have the url of itself. I searched them on Twitter manually according to the text. Most of them are replies (some are not). These tweets look perfectly normal to me and are not private or restricted. My code is as below:
I wonder why this will happen and is there any way to fix it. Thanks in advance, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
now I figured it out. It only returns for tweets with text urls or media. Pure text tweets return NULL. For media urls, it will direct to the tweets instead of specific pics, but for text urls it will directly go to that website. That's why I took entities.url as it can return tweet url. It CANNOT. |
Beta Was this translation helpful? Give feedback.
-
And to get the url of the tweet itself, just use the id column. It gives you an id string. |
Beta Was this translation helpful? Give feedback.
now I figured it out. It only returns for tweets with text urls or media. Pure text tweets return NULL. For media urls, it will direct to the tweets instead of specific pics, but for text urls it will directly go to that website. That's why I took entities.url as it can return tweet url. It CANNOT.