2010-08-03 3 views

Répondre

1

vous obtenez binaire retour parce que la page que vous citiez ne retournera pas HTML/XML, il est de retour un Apple WebObject. De wget:

wget http://itunes.apple.com/us/app/the-far-islands-by-john-buchan/id327765949?mt=8 
--2010-08-03 12:38:14-- http://itunes.apple.com/us/app/the-far-islands-by-john-buchan/id327765949?mt=8 
Resolving itunes.apple.com... 17.250.237.16 
Connecting to itunes.apple.com|17.250.237.16|:80... connected. 
HTTP request sent, awaiting response... 200 Apple WebObjects 
Length: 22900 (22K) [text/html] 
Saving to: `id327765949?mt=8' 

100%[======================================>] 22,900  --.-K/s in 0.05s 

2010-08-03 12:38:14 (440 KB/s) - `id327765949?mt=8' saved [22900/22900] 

Voir la good old Wikipedia pour plus d'infos, mais si vous souhaitez analyser, vous devrez peut-être utiliser quelque chose qui simule un navigateur et peut donc interpréter - watir serait peut-être travailler.

+0

Votre commande wget indique qu'elle renvoie du texte/html. Je viens de courir boucle sur ma machine comme l'OP et obtenu HTML: https://gist.github.com/2047126 – ZiggyTheHamster

Questions connexes