question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[help wanted] Stream tweets matching keywords/hashtags + only from certain users

See original GitHub issue

Hello, sorry first of all to create an issue for help.

Is this library capable of performing a stream function, that only matches against tweets made with certain hashtags/keywords, but also only from certain authors, for example like this which works on twitter.com:

(dragon OR #tesla OR microsoft)(from:elonmusk OR from:billgates)

Or, in URL form: https://twitter.com/search?q=`(dragon OR %23tesla OR microsoft)(from%3Aelonmusk OR from%3Abillgates)`&src=typed_query&f=live

Thank you

Edit: Sub question, could you also stream the tweets made by accounts that a ‘slave’ account follows? To alleviate the need to maintain a list, you could simply follow someone, and their tweets would be streamed.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
dandvcommented, Jun 11, 2020

Well, how many IDs are there in total? I’d guess 149, and you can check that in Twitter’s UI.

“49 more items” is just how console.log displays arrays. Try console.log(ids.slice(100) to see array items #100 through the end, or better yet, use an IDE that lets you step through the code and inspect all array elements.

So yep, you can pass that array to other commands.

1reaction
dandvcommented, Jun 10, 2020

The friends/list endpoint returns friend user objects, but it only returns <200 users per request, and is rate limited at 15 requests per 15-minute window. If you want IDs, friends/ids returns up to 5000 IDs.

PS: I’ve edited your post above for formatting. ```s need to be standing alone on the line.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Search Tweets - How to build a query | Docs - Twitter Developer
For example, cat #meme -grumpy will match Tweets containing the hashtag #meme and the term cat, but only if they do not contain...
Read more >
How to get a stream of tweets from Twitter containing ... - Quora
It is easy to simply find Tweets with a certain hashtag by using Twitter's search function but by using social media aggregator tools...
Read more >
Building high-quality filters for getting Twitter data
Tweets with certain content structure (e.g. exclude all Tweets that are just a hashtag with no additional information). Use keywords ...
Read more >
The ultimate guide to Twitter advanced search - Zapier
Search Twitter more quickly with these advanced search tips. Narrow down to the people, email addresses, locations, topics, and more with ...
Read more >
Real-Time Tweet Analytics Using Hybrid Hashtags on Twitter ...
Keywords : Twitter; Hybrid Hashtags; Big Data stream; ontology; Apache Storm ... Our proposed framework, HHTC, not only helps improve tweet topic ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found