Comments (3)
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.
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.
Fixed by 826d693
from twitter-tools.
Related Issues (20)
- Spam filtering
- Store created_at as long HOT 1
- Add auth mechanism HOT 1
- Java set to require too much memory in etc/run.sh HOT 2
- Extract Named Entities
- Decide on (Lucene) Analyzer HOT 15
- Implement service to return term counts HOT 6
- Response format HOT 2
- What fields do you need to replicate your run? HOT 22
- Extract Entities form tweet text HOT 2
- Memory usage in IndexStatuses HOT 1
- MalformedJsonException forced end to indexing HOT 4
- Status.fromJson can fail, throwing an NPE HOT 4
- "Connection timed out" on client.search
- Merge RM3 contribution back into master HOT 1
- RM3 doesn't implement duplicate removal
- trec_eval problem at compile time
- twitter collection 2011
- The test URL is access denied HOT 1
- Fetch data from Tweets2011 Collection HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twitter-tools.