Giter VIP home page Giter VIP logo

Comments (6)

rohitram96 avatar rohitram96 commented on May 24, 2024

It looks like twitter-intact-stream does some manipulation to the JSON object it receives from Tweepy, and isn't in the Tweet JSON Specification supplied by Twitter. I'd recommend using twarc to rehydrate a list of the IDs from the data.

Note, that not all the information birdspotter requires is in the JSON supplied by twitter-intact-stream.

from birdspotter.

TamHHM avatar TamHHM commented on May 24, 2024

Thanks for your reply. Would you please be a bit more specific on how to prepare the input for birdspotter? As per your answer, birdspotter cannot use the output of twitter-intact-stream directly and it has to go through twarc, doesn't it? If possibly, may you provide some examples?

from birdspotter.

rohitram96 avatar rohitram96 commented on May 24, 2024

On closer inspection; it looks like twitter-intact-stream does leave us in the correct format, assuming no post-processing has been done. I'll need to investigate further, as to why one or more of the json objects don't have a "text" or "full_text" field.

from birdspotter.

rohitram96 avatar rohitram96 commented on May 24, 2024

It looks like the twitter-intact-stream contains lines to indicated rate-limiting, such as

{"limit":{"track":283540,"timestamp_ms":"1483189188944"}}

Normally, birdspotter would ignore corrupted lines that aren't in valid json format, but this is valid json.

The work around at the moment would be to filter out lines that look like the above and then feed the result into birdspotter.

I think it would be better if birdspotter dealt with cases like this better. I'm going to put a temporary fix in so that it ignores objects without a text or full_text field.

I'll leave this open till that is implemented.

from birdspotter.

andrei-rizoiu avatar andrei-rizoiu commented on May 24, 2024

Rate limit messages are normal when using the search API, they give the number of lost tweets. You would expect them when using other Twitter API tools, so would be good if birdspotter would filter them our automatically.

from birdspotter.

rohitram96 avatar rohitram96 commented on May 24, 2024

db93307 in the development branch should fix this problem, at least temporarily. There should probably be a more robust check of the json object to verify it's validity, but we'll wait till there is more interest.

from birdspotter.

Related Issues (11)

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.