0

Is it possible to get information from a url?

For example, it would be possible to get the headline and the image through the following url:

http://www.farodevigo.es/deportes/2011/08/24/lopez-garai-herrera-equivoca-prescindiendo/574038.html

2 Answers2

0

Yes, that is possible but I wouldn't reccommend it.

In general, parsing HTML is hard - it's probably badly formatted and you would have a hassle trying to work out which bits you wanted and which bits you didn't.

You are better off using this URL : http://www.farodevigo.es/elementosInt/rss/1 and using NSXMLParser - because it's RSS it's definitely going to be well formed and easy for you to understand :)

deanWombourne
  • 38,189
  • 13
  • 98
  • 110
  • (I can't read the language it's in so I'm not 100% sure that link is exactly the correct one but you should be able to find a RSS feed that contains what you need!) – deanWombourne Aug 24 '11 at 11:30