아이튠즈 피드에서 리뷰받아 오기

이걸 만든 계기는 사내 프로젝트 관리 사이트 구축하면서 유저들의 피드백을 손쉽게 받을 수 있도록 하기 위해 만들었습니다. 그럼, 아이튠즈에서 리뷰를 가져오는 방법에 대하 간략하게 소개하고자 합니다.
기본적인 로직은 아이튠즈에서 아래 URL로 XML데이터를 가져와 파싱하는 방식이며 데이터를 가져올 주소는 다음과 같습니다.

http://ax.phobos.apple.com.edgesuite.net/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=[APP_ID]&onlyLatestVersion=[BOOLEAN]&ign-impt=clickRef&pageNumber=[PAGE_NUMBER]&sortOrdering=[NUMBER]&type=Purple+Software&mt=8  [] 안에 알맞은 변수값을 넣어주시면 되구요 변수값은 http://lib.qnibus.com/itunesreview/ 소스보기를 통해 상단 검색폼 확인하시면 될 것 같습니다.

가장 중요한게 있는데 반드시 요청할때 헤더에 다음과 같은 정의를 추가해주어야 데이터를 받아 볼 수 있습니다. <X-Apple-Store-Front: 143459-1> 여기서 143459는 스위스의 스토어 아이디입니다. 물론 표기는 숫자지만 -1를 포함한 문자열로 넘겨주셔야 합니다.

또한가지 중요한 부분은 User-Agent의 설정입니다.
헤더에 <User-Agent : iTunes/10.0.0.68 (Macintosh; Intel Mac OS X 10.5.8) AppleWebKit/531.21.8> 이렇게 넣어주세요! 전 만든지 오래되서리 정보가 저런데 자신의 환경에 맞는 버전으로 바꿔주셔도 됩니다.

한눈에 보기 편하도록 작성된 코드도 같이 첨부합니다.

위의 2가지를 반드시 해주셔야 XML데이터를 반환해줍니다.
최근들어 이걸 물어보시는 분들이 계셔서 포스팅합니다.

작업실 예제보기

44 dead as trains collide in iranWhilst many will point to the quarterback position as being the area that needs a total overhaul, Cleveland have bigger issues to address than whether Johnny Manziel is allowed off the naughty step each week. The Browns have virtually cheap jerseys wholesale no one they oakley outlet can call a true playmaker on offence. We also continue to see long term engagement across Battlefield 4 and Battlefield Hardline. In Q3, our players logged Fake Oakleys more than 150 million hours of Battlefield gameplay.. Did not ask. Buffalo General Manager Doug Whaley, on not knowing for sure why the Bills fired Rex Ryan as coach. Even that annoying neighbor whose house looks like the Christmas spirit got drunk and threw up on the front lawn doesn’t need that much fake ray bans Christmas crap. Still, things are looking up for Yiwu, as more and more Chinese people are rejecting communism in favor of capitalistic materialism and that path will lead them straight into Santa’s lap.. FATSIS: Well, kind of the way they have. It still feels a lot like denial. Yep, it’s pretty uncanny. Also, it’s from right around the same time as the creation ray bans sale of Spider Man, meaning that . Pam Iorio, the mayor of Tampa, was making her rounds of Radio Row the other day, and it struck me that fake ray bans she was the only female guest I had seen offered to the various bleacher screechers, aside from three Hooters girls whose raison d’etre was a bit lost on radio. Senate, gamely answered all my questions about the economic impact of the Super Bowl on her community.. The Falcons will also keep an eye on LB DE Vic Beasley (shoulder) and CB Robert Alford (knee), who were hurt in the Saints game. Quinn said some players will be limited Fake Oakleys this week, but they should be ready to go when the Falcons return to a regular practice schedule next Tuesday.. There is no set path to success in the business world as some of the world’s most successful CEOs have shown us. Consider the fact that Richard Branson (left) cut his teeth breeding budgies or Marissa Mayer (center) learnt some of her integral lessons working at a grocery checkout. Instead of flowers, his family requests donations to the Fellowship of Christian Athletes and its youth camp program. Box 8366, Huntington Beach, CA 92615 8366.. The stage is set for physical violence.Partners of abusers often ignore these signs, and even when the hitting begins, believe it was either their own fault that they were attacked or the abuser will somehow change and not hit again. That’s not the case.

Published by

안반장

Web과 App 개발을 하고 있으며 최근 워드프레스에 관심이 많아져 네이버 카페 워드프레스 홈페이지의 TF팀으로 활동 중 입니다.개인적으로는 안반장의 개발 노트라는 블로그를 운영하면서 개발의 즐거움과 고충들을 차곡차곡 담아가고 있습니다.