RapidMiner 9.7 is Now Available

Lots of amazing new improvements including true version control! Learn more about what's new here.

CLICK HERE TO DOWNLOAD

Using RapidMiner to search Twitter accounts for all tweets related to a specific topic/query.

christopher_bakchristopher_bak Member Posts: 3 Contributor I
edited December 2018 in Help

Hi there,

I have just started using RapidMiner and have a limited grasp of XML. I am trying to use RapidMiner to search a set of Twitter accounts (news outlets) for all tweets (news stories) related to a specific topic/query, I would then analyse the headlines' sentiment with Aylien.  

 

I only seem to be able to use 'Search Twitter' to pull up all tweets (recent or popular) on a topic but not from the users I want data on, or I use 'Get Twitter User Statuses' and receive superfluous information on topics I do not want. Is there any way to achieve the results I want without creating my own process (which I am unable to do) using advanced XML?

 

I am sorry if there isn't enough information there, or if I have missed something that may help anyone answering the question. Any help or advice anybody can provide would be greatly appreciated.

 

Thanks.

 

Chris

Best Answers

  • Telcontar120Telcontar120 Moderator, RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 1,497   Unicorn
    Solution Accepted

    Thanks for the clarification.  Just to be sure, when you say "manually" you understand that RapidMiner is still doing the work using the Filter Examples operator, where you can use the "contains" clause to find those topics you are interested in.  So no human work required other than setting up the process.  It's actually pretty efficient, just not in a single operator.

    I would add the product suggestion though for the Twitter search, it sounds like something that would be helpful.

     

    Brian T.
    Lindon Ventures 
    Data Science Consulting from Certified RapidMiner Experts
  • sgenzersgenzer 12Administrator, Moderator, Employee, RapidMiner Certified Analyst, Community Manager, Member, University Professor, PM Moderator Posts: 2,952  Community Manager
    Solution Accepted

    hello @christopher_bak welcome to the community. Some suggestions for you:

    • I would HIGHLY recommend learning the general functionality of RapidMiner. We have a whole "RapidMiner University" here on the community which will teach you about Filter Examples and much more.
    • There is almost an exact solution to your problem in the Community Samples repository that you can use any time:

    Screen Shot 2018-08-20 at 2.53.10 PM.png

     

    Hope that helps.


    Scott

     

Answers

  • Telcontar120Telcontar120 Moderator, RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 1,497   Unicorn

    So you want to search for all posts on a given topic only for a given set of Twitter users?

    There is no "simple" way to do this (e.g., using a single operator) but it is definitely do-able with RapidMiner.  If the user set is not that large, I'd probably start by pulling all the tweets for those users (Get User Statuses), and then simply filtering them by those that contain your hashtags of interest with the Filter Examples operator on the text field, and then Append all the results together.  If the user set is large, you might need to do this with a loop/macro setup.

     

    P.S.  If you think this is a worthwhile use case you could suggest the idea to add such a query term (user id) to the Search Twitter operator in the Product Ideas board.

     

    Brian T.
    Lindon Ventures 
    Data Science Consulting from Certified RapidMiner Experts
  • christopher_bakchristopher_bak Member Posts: 3 Contributor I

    Hi Brian,

     

    Thanks for the reply. 

     

    So you want to search for all posts on a given topic only for a given set of Twitter users?

    Yes, that is essentially it. I wanted to pull all mentions of Bitcoin in 2018 by a select number of news media outlets on Twitter.

     

    If the user set is not that large, I'd probably start by pulling all the tweets for those users (Get User Statuses), and then simply filtering them by those that contain your hashtags of interest with the Filter Examples operator on the text field, and then Append all the results together.

    This was what I thought I might have to do; run single user searches and sort through them manually, I was just hoping someone with more advanced knowledge of the platform may know a simpler more efficient way to complete the task. 

     

    If you think this is a worthwhile use case you could suggest the idea to add such a query term (user id) to the Search Twitter operator in the Product Ideas board.

    If you think it would be worthwhile I would be happy to share my query with the Product Ideas Board.

     

    Thanks for your advice.

     

    Chris

     

  • christopher_bakchristopher_bak Member Posts: 3 Contributor I

    I didn't even realise there was a 'Filter Examples' operator. Thank you for the tip!

     

Sign In or Register to comment.