Closed (fixed)
Project:
Activity Stream
Version:
6.x-1.0-beta1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
9 Sep 2008 at 01:26 UTC
Updated:
9 Sep 2008 at 02:50 UTC
The RSS for Twitter only gives the first page of Tweets from a person. I was considering going through each of my other six pages of tweets and manually adding them via the Create Content -> Activity Stream that I'm warned not to use manually but after digging through the code I saw that I would be missing out in all the other meta details such as which feed and format to use, etc.
So, I have eight total pages of Tweets I'd like to import into my Activity Stream - what would be the best way to import old data?
Comments
Comment #1
akalsey commentedYou can edit activtystream_twitter.module to increase the number of items that Activity Stream gets from Twitter.
Find the line that says...
and change it to...
Then run cron. The last 200 tweets will be imported. If you want more than that, edit the line again and add &page=2 to the end of that URL.
You can keep doing that until you've gotten all your tweets.
Make sure to change it back when you're done. You don't want your server fetching 200 items on every cron.
Comment #2
BakerQ commentedI was hoping that editing the URL was all that was needed - I just didn't know if the page numbers or the counts would go along well. THANK YOU!