Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 427833
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T19:36:56+00:00 2026-05-12T19:36:56+00:00

Disclaimer: I have no Twitter API experience nor have I used Twitter until today

  • 0

Disclaimer: I have no Twitter API
experience nor have I used Twitter
until today

I’ve been given the task of creating a ‘tweeting contest’ – if anyone has Twitter API experience and/or has done this in the past, I would appreciate any useful tips that you may have.

So the basic rules are that in order for a user to enter the contest, said user must follow the contest’s twitter and must retweet with a specific message, such as ‘just entered a contest for http://foo.com/contest‘.

Questions:

  1. To get the entrants, I have to parse the rss feed of the contest, http://twitter.com/statuses/user_timeline/21586418.rss seems to only list the last few posts so I would probably have to interact with the Twitter API in order to get all messages. Can someone recommend documentation or a page that covers this?

  2. I’m not exactly sure if I should store the actual users in a local xml file or rely on querying the Twitter API, if I store them I would have a cache local copy of users… a database would be overkill and if I were to store them it would be better off in an xml file, right?

  3. Related to #1, should I actually parse for the exact message which the user has to tweet, eg “just entered a contest”, the exact string when I parse through the data feed of all the tweets? Or is there some sort of tagging system I can use?

  4. Related to #1, I would have to determine whether the user is a follower or not, so I can’t determine that by parsing an entry/tweet, I would have to query the user’s id and grab statistics from the people he/she follows?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T19:36:57+00:00Added an answer on May 12, 2026 at 7:36 pm

    You could search for the URL, but the best approach would be to use a hashtag:

    just entered #supercoolcontest for http://foo.com/contest
    

    You can search for incidences of #supercoolcontest which contain the required contest URL or whatever other keywords you might want. This will ensure users don’t have to be text-precise when retweeting, and also gives people a way to talk about the contest in a general way that is trackable.

    You can pull all tweets with a hashtag by using the search API:

    http://search.twitter.com/search.json?q=%23supercoolcontest
    

    This is probably the most efficient approach, since you are guaranteed to only pull the tweets you’re interested in, instead of n tweets from n users, only a tiny fraction of which has anything to do with you.

    Every time you scrape that API feed (every n minutes), insert new unique users. I’d use a database – not hard or time consuming to stand something up with a table or two. Easier to query against later.

    To answer your last question, you do need to make a separate API call to determine if a given user follows another user.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Disclaimer: I have no experience using YUI at all. I was wondering how the
Disclaimer: I have not used RoR, and I have not generated tests. But, I
First of all, a disclaimer: I have experience in other languages, but am still
Disclaimer: I have already seen the following questions and their solutions did not apply
Disclaimer: I have looked through this question and this question but they both got
Disclaimer: I have gone through the related questions, and could not find solutions to
(Disclaimer: I have removed the Qt tag in case the problem is in my
Disclaimer, I know very little about Rails. I'll try to be succinct. Given the
Disclaimer: This is not actually a programming question, but I feel the audience on
Disclaimer: I'm stuck on TFS and I hate it. My source control structure looks

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.