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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T16:20:35+00:00 2026-06-06T16:20:35+00:00

I previously asked a question about fetching the last 100 mentions for a person

  • 0

I previously asked a question about fetching the last 100 mentions for a person via the twitter api. Now I succeeded in that, I noticed that the twitter api by default doesn’t have a ‘location’ tag. I believe that is related to the ‘search.twitter.com’ result

Below you can find the code I use and the twitter search querystring.
Can I add something which will force to show the location ?

Thanks in advance!

tweets = json.loads(urllib2.urlopen('http://search.twitter.com/search.json?q=BarackObama&rpp=5&include_entities=true&result_type=mixed').read())['results'][0:3]
  • 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-06T16:20:38+00:00Added an answer on June 6, 2026 at 4:20 pm

    If there are Geo Co-ordinates recorded when the tweet was sent, you will retrieve them in your search contained in the coordinates field. If it is absent, or nul then it was not recorded.

    If you want to force it to only give you back tweets that have coordinates stored in them, then you can use the optional geocode parameter.

    Returns tweets by users located within a given radius of the given latitude/longitude. The location is preferentially taking from the Geotagging API, but will fall back to their Twitter profile. The parameter value is specified by "latitude,longitude,radius", where radius units must be specified as either "mi" (miles) or "km" (kilometers). Note that you cannot use the near operator via the API to geocode arbitrary locations; however you can use this geocode parameter to search near geocodes directly.

    Example Values: 37.781157,-122.398720,1mi

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

Sidebar

Related Questions

I previously asked a question about chaining conditions in Linq To Entities. Now I
I'm deleting a previously asked question and asking again more succinctly now that I
I asked a question about dismissing multiple view controllers previously and the answers that
I asked a similar question about this previously, but I did not specify that
I've previously asked a question about designing a service that receives video files, sends
I've previously asked a question about an issue I have been experiencing with CSharpOptParse
I asked a question about this previously but my database structure has changed, and
I previously asked a question on stack overflow about how to format my date
This is an edited version of a question that I had previously asked (and
I previously asked this question about how to make versioned serializaion using boost::serialization::access I

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.