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 8414629
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T01:12:54+00:00 2026-06-10T01:12:54+00:00

I am using the Twitter GET search for retrieving tweets from a specified account,

  • 0

I am using the Twitter GET search for retrieving tweets from a specified account, hashtag etc. etc.. But the Twitter GET search has it’s limitations: it has a timelimit of 6 to 9 days of visible tweets. That’s where I want to make sure there are always three tweets visible on the website.

The problem is I can’t just add the entire xml string to a database (tried that, and it works, but if there is a new tweet when the others are not visible anymore I’m stuck with 1 tweet instead of 3 when it updates) and need to target individual nodes of the xml-file.

The point is that I want to retrieve new tweets, but ‘close the gap’ with the older tweets (in case there are less than 3 tweets in the GET search).

I still want to save a xml string to the database, but with the backup-plan as described above. I want to use php for this xml-string modifying. Does anyone have suggestions on this? I tried simpleXML, but this has it’s limitations (e.g. reading, editing or deleting of an object’s nodes).

I am aware of the Twitter Stream API, but I just can not get hold of how it works, that’s why I am trying it with the GET search.

  • 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-06-10T01:12:56+00:00Added an answer on June 10, 2026 at 1:12 am

    Why don’t you:

    1. Get the search XML
    2. Parse it to extract each tweet
    3. Store each tweet in a table (with the tweet_id as PK)
    4. Continue to fetch the search
    5. if the last tweet from the search is different than the last tweet from the database, you integrate it
    6. back to 4. and loop

    This way, you will always have XX tweets available. And you can purge the table when you have XX tweets inside to keep fresh tweet inside.

    After that, you can improve the way you find if a tweet is on your side or not. But I think it’s a good start.

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

Sidebar

Related Questions

i am using hybridauth to get userinformation from social web sites like facebook,twitter, etc.
i am using hybridauth to get userinformation from social web sites like facebook,twitter, etc.
I've been using the Twitter search api and PHP to pull in tweets from
I'm using the Twitter API atom format http://search.twitter.com/search.atom?lang=en&q=some_hashtag but it's return me tweets with
I'm using the css styles from Twitter Bootstrap but I can't seem to align
I'm retrieving tweets trhough the Twitter Search API and keeping them in MySql database.
Im trying to get a Twitter feed , either using the search API or
Trends data from Twitter Search API in JSON. Grabbing the file using: $jsonurl =
I am using the twitter ouath to get my tweets and now have an
I am using ARC with TWRequest. I have successfully returned a search from twitter

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.