-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
adding extra utility and parsing abilities to the library #28
Comments
This is a good question and line of thought. At the highest level I think all of these things you've shared have a reasonable place in this library. They're all about parsing and accessing the data (relevant), but not really conducting analysis on that data (less relevant). Others can jump in if this feels off, but it has felt to me that the getters defined in the library so far (as attributes on the Tweet object) are all written in terms of explicit payload content. So, for example, I believe I also think it makes a lot of sense to provide some lightweight convenience methods that do some of the geo manipulations with e.g. bounding regions. My initial feeling is this: add getters to the Tweet object for all of these explicit geo payload elements (i.e. bounding box and point coordinates) while aligning their signitures, and introduce a new namespace for utilities (as an example: |
I think that adding a getter for some other piece of data (like the bounding box of a place) is definitely a getter, but I think that we should introduce some kind of A good step might be fore @binaryaaron to add those functions as a new namespace and submit a review? Or, @binaryaaron I'd be happy to do it if you want me to. |
I'd be happy to make a PR for this and will do so in the near-ish future. :) |
I wanted to open this up for discussion.
The tweet parser as is has a ton of great functionality for working with tweets and makes a lot of tweet data readily accessible. However, there are other potential cases of working with tweet data that are not explicitly parsing predictable data from tweets.
For one example, if a person wants to grab tweets with ANY geolocation data and use it, they have to deal with both exact position (lat, long) and geojson place coordinates (bounding box and associated info). I had made some code to essentially unify the two methods to get data that was easily plottable, by creating a function that gets either precise position if it exists or a coordinate in the bounding box.
The code looks like this:
Should we have an auxiliary module in here that allows for storing such code? I think it could be useful long-term in centralizing our efforts, sharing code, and helping end users get work done quickly. I am not at all opposed to putting this type of code elsewhere either.
The text was updated successfully, but these errors were encountered: