1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to Automatically Tweet Retweets Based on Keywords

Discussion in 'Social Networking Sites' started by rluna559, Nov 12, 2011.

  1. rluna559

    rluna559 Newbie

    Joined:
    Apr 16, 2009
    Messages:
    23
    Likes Received:
    6
    Hello everyone, I been a BHW member for a while, mostly reading and learning. Now it's time to give a little back to the community at BHW. In this tutorial I will teach you how to create automatic (at)username mention retweets on Twitter using Twitter search RSS, Yahoo! Pipes and Twitterfeed. I have used this method successfully to automatically increase interaction between real Twitter users and my Twitter accounts. Since this method creates (at)user mentions, users in return often follow me, retweet my tweets to their followers, send me messages, or visit my profile and click on my outbound links.

    So let's get started. Below there will be many http links, be sure to replace the xx's with tt's. Also replace the * with periods. Sorry for this, I cannot post links, even in code boxes. Also below I had to use (at) because the sign was triggering as an email and would not let me post.

    Now since this is RSS based posted through Twitterfeed, the (at)usernames will appear on other users Mentions tab and not the actual Retweet tab.

    First you must create a Twitter RSS feed based on keywords.

    Code:
    hxxp://search*twitter*com/search.atom?q=(keyword)
    
    The page below has more information about Twitter RSS feed search and a great tool to create more advanced search queries.

    Code:
    hxxp://www*mprocopio*com/blog/social-media/rss-feed-twitter-search/
    
    Once you got your RSS feed created, the next step is to create your Yahoo! Pipe.

    Open a new Pipe and place a Fetch Feed module. Under URL input your Twitter RSS feed link.

    Next, drop a Regex module and connect your Fetch Feed module to it. The first thing you have to do in the Regex module is to isolate the author's username. If you look at the RSS data, you'll notice that the username is embedded in the link info. You want to strip the rest of the link from the username and replace the string with only (at)username.

    Below is the information to enter in the first rule. This rule will strip the URL up to the username and append a RT (at) to the username.

    In
    Code:
    item.link
    
    replace
    Code:
    hxxp://www*twitter*com/
    
    with
    Code:
    RT (at)
    
    Add the next rule. This rule will strip the rest of the URL after the username.

    In
    Code:
    item.link
    
    replace
    Code:
    /statuses[^\s]+
    
    with
    Code:
     :
    
    In the with box above, there is a space before the colon. There is a bug in Yahoo! Pipes and spaces at the end of strings in Regex. Spaces with no characters after them are ignored by Yahoo! Pipes. To remedy this, a character has to be place after the space. We'll remove the colon farther down in the pipe. Without doing this, we won't have a space between our author's (at)username and the retweet.

    Add another rule. This rule will stripe all the HTML code from the tweet content.

    In
    Code:
    item.description
    
    replace
    Code:
    <.*?>
    
    with
    Code:
    (leave this entry blank)
    
    Check the g box.

    Now we must add the link string and description string together to make one string. To do this, add a Loop module and connect your Regex module to it.

    Inside the Loop module place the String Builder module.

    Create the string as follows:

    Code:
    item.link
    item.description
    
    Code:
    assign results to item.title.
    
    This will combine both strings and output them in the item title.

    Now it's time to remove the colon we place in the Regex module to circumvent the space bug.

    Drop another Regex module and connect your Loop module to it.

    Add one rule as follows:

    In
    Code:
    item.title
    
    replace
    Code:
    :
    
    with
    Code:
    (leave this entry blank)
    
    Next, you must filter out all of the entries that have spammy links in them. Drop a Filter module and connect your last Regex module to it.

    Setup the module as follows:

    Code:
    Block items that match any of the following
    
    First rule:
    Code:
    item.title
    
    Code:
    Matches regex
    
    Code:
    hxxp://[^\s]+
    
    Second rule:
    Code:
    item.title
    
    Code:
    Matches regex
    
    Code:
    www*
    
    That's it, now the RSS output of your Pipe should show the title in the following format:

    RT (at)username (tweet content)

    Now in your Twitterfeed account create a new feed. Be sure to select post title only and uncheck post links. I like to post 5 tweets every 30 minutes. So each Pipe can net you 10 tweets an hour. You can scale it up a bit with more Pipes, but I wouldn't recommend Tweeting more than 40 tweets an hour.
     
    • Thanks Thanks x 5
    Last edited: Nov 12, 2011
  2. hfcorreia

    hfcorreia Regular Member

    Joined:
    Aug 30, 2010
    Messages:
    291
    Likes Received:
    44
    Location:
    JAMAICA
    Home Page:
    very nice mate^^
    thanks for sharing!

    bookmarked:)
     
  3. El_Seo

    El_Seo Regular Member

    Joined:
    May 24, 2009
    Messages:
    275
    Likes Received:
    52
    Location:
    Between few networks
    Home Page:
    Thanks! I will give it a try!
     
  4. shez555

    shez555 Newbie

    Joined:
    Nov 17, 2011
    Messages:
    20
    Likes Received:
    0
    hello

    i worked on that every thing was i was seeing my desired RT but when I put the rss into twitterfeed it gave regarding time
    can you help me on that
     
  5. Jessica123

    Jessica123 Registered Member

    Joined:
    Aug 23, 2011
    Messages:
    54
    Likes Received:
    3
    Hi,
    It is really a nice try but I never believe in automatic tools, they are considered as spam.
     
  6. obolang

    obolang Registered Member

    Joined:
    Nov 23, 2011
    Messages:
    56
    Likes Received:
    2
    Hi, first of thanks for this tips. I think it should work to gain many followers.

    I've just followed all of your steps. However, the result is not as same as your format which is

    My format come with this:

    * means .
    x means c
    (sorry but I can't post the permalink here)

    I have reread and followed all your steps one by

    one, but still I can't find the error. Maybe you are experience with this one before.

    Please help me. Thx =)
     
    Last edited: Nov 23, 2011