ttezel / twit

Twitter API Client for node (REST & Streaming API)
4.31k stars 568 forks source link

Get old tweets doesn't work #430

Closed LuisPaGarcia closed 6 years ago

LuisPaGarcia commented 6 years ago

I want to get old tweets from an account:

const Twit = require("twit");
const T = new Twit({
...
});

T.get(
  "statuses/user_timeline",
  { screen_name: "user_account", count: 10, q: "a until:2018-03-03" },
  function(err, data, response) {
    console.log(data);
  }
);

But this get only new tweets. Anybody have an idea to get old tweets based on date? #

ttezel commented 6 years ago

Yeah I've found that the Twitter API date filtering doesn't work as expected all the time. Twit passes your query along to the Twitter API so I don't think this is a twit issue. See the query syntax in the Twitter API docs. Might make sense to open an issue on the Twitter API to get this fixed.