Hello!
What is the simplest way to display this kind of feed? I've heard you can do this with Yahoo pipes, but does Twitter directly support this?
Thanks!
Hello!
What is the simplest way to display this kind of feed? I've heard you can do this with Yahoo pipes, but does Twitter directly support this?
Thanks!
http://search.twitter.com/search?q=%23weloveyouss501
there is your hash tag... see at the right there is an rss feed of this query:
http://search.twitter.com/search.atom?q=%23weloveyouss501
brilliant - now all you need is TouchXML and this function:
-(void)getRSSFeed:(NSString *)XMLString {
blogEntries = [[[NSMutableArray alloc] init] autorelease]; // blogEntries in header
NSError *theError;
CXMLDocument *rssParser = [[[CXMLDocument alloc] initWithXMLString:XMLString options:0 error:&theError] autorelease];
if(theError){
NSLog(@"An error");
}
NSArray *resultNodes = NULL;
resultNodes = [rssParser nodesForXPath:@"//item" error:nil];
for (CXMLElement *resultElement in resultNodes) {
NSMutableDictionary *blogItem = [[NSMutableDictionary alloc] init];
int counter;
for(counter = 0; counter < [resultElement childCount]; counter++) {
[blogItem setObject:[[resultElement childAtIndex:counter] stringValue] forKey:[[resultElement childAtIndex:counter] name]];
}
[blogEntries addObject:[blogItem copy]]; // blog entries set in header
}
}
if you output blogEntries
you will see all the entries. :) Now you can get at them easily. :)