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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:16:20+00:00 2026-05-23T12:16:20+00:00

I need help with parsing of JSON feed text returned from Twitter. I need

  • 0

I need help with parsing of JSON feed text returned from Twitter. I need to access, and apply style tags to the link, created_date, and other info. Any hints on how to accomplish this? Thanks in advance

  • 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-23T12:16:21+00:00Added an answer on May 23, 2026 at 12:16 pm

    First results on google:

    Ralph Whitbeck – Blog – Pulling twitter updates with JSON and jQuery. Code below:

    var url = "http://twitter.com/status/user_timeline/RedWolves.json?count=3&callback=?";
    $.getJSON(url, function(data){
        $.each(data, function(i, item) {
            $("img#profile").attr("src", item.user["profile_image_url"]); 
            $("#tweets ul").append("<li>" 
                                    + item.text.linkify() 
                                    + " <span class='created_at'>" 
                                    + relative_time(item.created_at) 
                                    + " via " 
                                    + item.source
                                    + "</span></li>");
        });
    });
    

    And the html:

    <div id="tweets">
        <img id="profile">
        <ul></ul>
    </div>
    

    Another example. Fetching tweets with jQuery and the Twitter JSON API. Reproducing below:

    $(document).ready(function() {
      // Declare variables to hold twitter API url and user name
      var twitter_api_url = 'http://search.twitter.com/search.json';
      var twitter_user    = 'lupomontero';
    
      // Enable caching
      $.ajaxSetup({ cache: true });
    
      // Send JSON request
      // The returned JSON object will have a property called "results" where we find
      // a list of the tweets matching our request query
      $.getJSON(
        twitter_api_url + '?callback=?&rpp=5&q=from:' + twitter_user,
        function(data) {
          $.each(data.results, function(i, tweet) {
            // Uncomment line below to show tweet data in Fire Bug console
            // Very helpful to find out what is available in the tweet objects
            //console.log(tweet);
    
            // Before we continue we check that we got data
            if(tweet.text !== undefined) {
              // Calculate how many hours ago was the tweet posted
              var date_tweet = new Date(tweet.created_at);
              var date_now   = new Date();
              var date_diff  = date_now - date_tweet;
              var hours      = Math.round(date_diff/(1000*60*60));
    
              // Build the html string for the current tweet
              var tweet_html = '<div class="tweet_text">';
              tweet_html    += '<a href="http://www.twitter.com/';
              tweet_html    += twitter_user + '/status/' + tweet.id + '">';
              tweet_html    += tweet.text + '<\/a><\/div>';
              tweet_html    += '<div class="tweet_hours">' + hours;
              tweet_html    += ' hours ago<\/div>';
    
              // Append html string to tweet_container div
              $('#tweet_container').append(tweet_html);
            }
          });
        }
      );
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need help with parsing json string in Java Android Appl. Text of JSON
I need help parsing out some text from a page with lxml. I tried
I'm currently using json-framework and need some help though parsing some JSON i'm getting
I need some help with parsing a line of text. The line of text
I need help in parsing a very long text file which looks like: NAME
I need help in retrieving a JSON object and parsing the array into my
Need help writing a script downloads data from google insight using c# this is
i need help modelling a use case diagram from a topic, it will be
I'm really need help with parsing XML by TBXML. I created a demo project
I need some help with parsing a string in Linux. I have a string:

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.