iphone - Get the full list of feed url patterns? -
I have seen some similar questions on stack overflow and searched Google, but a satisfactory answer could not be found.
I am making an application that is shown in the data table. Now when I select a line, it is now necessary that if it comes to a page where I expect to see the feed, I am trying to find the URL through, but I'm not sure that this will give me the best results and I will lose some more cases, so I need help in two ways:
- what A better way of doing it?
-
Or is these matters full (meaning, do I need to check more cases)?
- (BOOL) checkForTheFeed: (NSString *) address {if ([address hasfix: @ "/ feed /"]) Yes return; If ([knowPrint: @ "feed: //"]) Return yes; If ([address limitoffstring: @ "= RSS"]. Location! = NSNotFound) Yes; If ([address limitoffstring: @ ".arse"]. Location! = NSNotFound) Yes come back; If ([know: suffix: @ "/ rss /"]) return yes; If ([address limitoffstring: @ "/ feeds."]. Location! = NSNotFound) Yes; If ([address limitoffstring: @ ". Feeds."]. Location! = NSNotFound) Yes; If ([know: suffix: @ ".xml"]) return yes; no return;
P>
You really should see the content-type and content of the remote resource.
Comments
Post a Comment