Git Product home page Git Product logo

Comments (3)

raulrene avatar raulrene commented on August 23, 2024

I just checked the code and it appears to correctly append the geocode. Most probably because of the spaces in it it wasn't correctly taking it into account. I've done a small fix, theoretically it should work.

Also make sure to correctly set the geocode in the form of lat long radius_in_miles, like 37.781157 -122.398720 1mi.

@Ka0tiK can you check to see if it works now? Make sure to update before. Thanks!

P.S. Yes, the account should have the location set. If not, the API can't filter it by geocode.

from twitter-contest-js-bot.

Fot3k avatar Fot3k commented on August 23, 2024

Still not working correctly. I did manage to find 1 tweet though and that was by using the format:

37.781157,-122.398720,1mi

According to my research tweets based on location will only be found quite obviously only if the account has location enabled on their device or have location entered into their profile. Still, this should bring far more results than one tweet as I can find them manually without issues.

Changing the radius from 1mi all the way up to 2500mi makes no difference, 250mi is my preferred choice. No other settings have been changed from default other than my twitter app credentials.

Thanks for the update!

from twitter-contest-js-bot.

raulrene avatar raulrene commented on August 23, 2024

Hi again @Ka0tiK ,
I've been looking for the past 20 minutes and I could indeed find that since 2014 there were several issues with the geocode searching. Some report that it worked for values like 5mi but failed for 15mi, which should theoretically include that.

However, I can't seem to find whether this is still an existing issue or not. Someone also specified that Tweets have to be manually geo-located, although their Search API states that

The location is preferentially taking from the Geotagging API, but will fall back to their Twitter profile

The format used for calling seems to be the one suggested by them, although I found some using: 43.913723261972855,-72.54272478125,150km (commas instead of spaces).

Could you also try this geocode format? If this also fails to work I'll have to guess it's either the Twitter API or their Profile settings, as we're calling their API properly.

from twitter-contest-js-bot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.