Giter Club home page Giter Club logo

Comments (3)

aaronj1335 avatar aaronj1335 commented on May 30, 2024

hey folks! i'm downloading the tweets2011 collection for a project for @mattlease's course at the university of texas ischool. so i'll need to figure out how to resolve this issue. i'm wondering if you guys thought it might be better to use the twitter api vs scraping the actual web page -- it seems like it'd be much more efficient, but i don't know if you guys have run into any rate-limiting issues w/ the api.

thanks!

from twitter-tools.

aaronj1335 avatar aaronj1335 commented on May 30, 2024

the smallest microblog collection is 16 million tweets, so the twitter api rate-limiting (something like 180 tweets every 15 min) would make it intractable for these collections.

as the issue implies, twitter stopped embedding the tweet's json in the html, so the only other option seems to be parsing the html. this is tricky because:

  • there could be several tweets in the conversation on the page and finding the correct one is nearly impossible with simple string matching
  • the contents of the tweet element have twitter's formatting applied, and the parser needs to differentiate between, say, a link to an @-reference and a link to an external site (whose text content is not the actual link)

@lintool do you think using something like jsoup to parse and select the contents would be the correct solution? i come from a javascript background, so it seems like node.js would be perfect for this, but i wouldn't want to re-implement all of the retry and redirect logic.

from twitter-tools.

lintool avatar lintool commented on May 30, 2024

Fixed by 826d693

from twitter-tools.

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.