Scraping Apple TV Store

Discussion in 'tvOS Programming' started by Patolino, Dec 6, 2015.

  1. Patolino macrumors newbie

    Patolino

    Joined:
    Jan 16, 2015
    #1
  2. lolkthxbai macrumors 65816

    lolkthxbai

    Joined:
    May 7, 2011
    #2
    Try this:

    https://itunes.apple.com/app/id1061395954

    EDIT:

    Apple does not allow you to view AppleTV apps anywhere except on the Apple TV. For this reason, you can not view the app on the App Store on an iOS device or Mac/PC.
     
  3. rorschach macrumors 68020

    rorschach

    Joined:
    Jul 27, 2003
    #3
    Actually, you can do it if you change your user-agent to:
    Code:
    TVAppStore/1.0 iOS/9.1 AppleTV/9.1 model/AppleTV5,3 hwp/t7000 build/13U85 (3; dt:119)
    which then lets you see this:
    Code:
    {"storePlatformData":{"product-dv":{"isAuthenticated":false,"version":2,"results":{}}},"pageData":{"componentName":"software_page","topApps":{"atv":{"ids":["1050487285","1044035635","1052887307","1054643575","1053777341","1050988587","1044574222","1057818978","441183050","1051817424","1053287271","1046703210","1050387033","1054534371","1051726944"],"title":"Top Paid Photo & Video Apps"}},"rating-and-advisories":{"rating-text":"Rated 4+"},"versionHistory":[{"releaseNotes":null,"versionString":"1.2","releaseDate":"2015-12-03T04:59:36Z"}],"clickToRateUrl":"https://userpub.itunes.apple.com/WebObjects/MZUserPublishing.woa/wa/userRateContent?displayable-kind=11&id=1061395954","id":"1061395954","appRatingsLearnMoreUrl":"https://itunes.apple.com/WebObjects/MZStore.woa/wa/appRatings?cc=us","sellerLabel":"Seller","customerReviewsUrl":"https://itunes.apple.com/us/customer-reviews/id1061395954?dataOnly=true&displayable-kind=11"},"properties":{"revNum":"5327","timestamp":"2015-12-08T18:15:59Z"}}
    Instead of it trying to automatically open iTunes.
     
  4. lolkthxbai macrumors 65816

    lolkthxbai

    Joined:
    May 7, 2011
    #4
    This wouldn't work on iOS would it?
     
  5. rorschach macrumors 68020

    rorschach

    Joined:
    Jul 27, 2003
    #5
    I don't see why it wouldn't. Whatever you're using to scrape, you just need to set the correct user-agent. That's all they seem to be checking.
     
  6. Patolino thread starter macrumors newbie

    Patolino

    Joined:
    Jan 16, 2015
    #6
    I did what you say but the returned information apparently has little to do with the application I have tried in the link.

    I have tried this link: https://itunes.apple.com/app/id1061395954

    That is a Photoshop course,

    the returned information is this:

    {"storePlatformData":{"product-dv":{"isAuthenticated":false,"version":2,"results":{}}},"pageData":{"componentName":"software_page","topApps":{"atv":{"ids":["1050487285","1052887307","1051817424","1053287271","1044035635","1054643575","1053777341","1050988587","1044574222","1057818978","1046703210","1050387033","1054534371","1051726944","1054643443"],"title":"Top Paid Photo & Video Apps"}},"rating-and-advisories":{"rating-text":"Rated 4+"},"versionHistory":[{"releaseNotes":null,"versionString":"1.2","releaseDate":"2015-12-03T04:59:36Z"}],"clickToRateUrl":"https://userpub.itunes.apple.com/We...RateContent?displayable-kind=11&id=1061395954","id":"1061395954","appRatingsLearnMoreUrl":"https://itunes.apple.com/WebObjects/MZStore.woa/wa/appRatings?cc=us","sellerLabel":"Seller","customerReviewsUrl":"https://itunes.apple.com/us/customer-reviews/id1061395954?dataOnly=true&displayable-kind=11"},"properties":{"revNum":"5327","timestamp":"2015-12-08T18:16:16Z"}}

    This result is pretty strange. First it list the top paid apps on the Photo & Video apps. I am not sure if it is telling me that my app is on the top list but apparently not. But why mention that list when I scrape my app? Then it gives me an URL to rate and see the reviews of my app. No information about the app, like the name, description, etc., as would be expected.
     
  7. rorschach macrumors 68020

    rorschach

    Joined:
    Jul 27, 2003
    #7
    Hm. Interesting. If you do it for the Netflix app, you get this:
    But that's a universal app. You can see "tvos" under "deviceFamilies", and in the Version History the version numbers and release notes are for the Apple TV:
    [​IMG]
     
  8. rorschach macrumors 68020

    rorschach

    Joined:
    Jul 27, 2003
    #8
    Actually, check out this url using the tvOS user-agent (which I got from here).

    That seems to be the Top Charts for the tvOS app store.
     

Share This Page