Coder Social home page Coder Social logo

Comments (3)

igorbrigadir avatar igorbrigadir commented on June 2, 2024

Thanks! I think this is missing in the code - when a tweet has exact geo but no place. There's no quick workaround you can do unfortunately - not without changing some code here: https://github.com/twitterdev/search-tweets-python/blob/v2/searchtweets/result_stream.py#L269-L271

This should fix it:

            if "geo" in payload and "place_id" in payload["geo"]:
                place_id = payload["geo"]['place_id']
                payload["geo"] = merge_dicts(payload["geo"], includes_places[place_id])

from search-tweets-python.

markowanga avatar markowanga commented on June 2, 2024

I want wait for official release (I'm build docker containers -- it will be little bit harder to prepare container with updated lib), when it will be released?

from search-tweets-python.

igorbrigadir avatar igorbrigadir commented on June 2, 2024

No idea, but if you don't want to wait you can install the patch directly with pip, from the branch like this:

pip install git+https://github.com/twitterdev/search-tweets-python.git@refs/pull/144/merge

Or

pip install https://github.com/igorbrigadir/search-tweets-python/archive/patch-2.zip

Or put

https://github.com/igorbrigadir/search-tweets-python/archive/patch-2.zip

Directly into a requirements.txt instead of searchtweets-v2 and your docker should build it all the same!

from search-tweets-python.

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.