본문 바로가기
기타

앱스토어 리뷰 정보 가져오기

by 앗사비 2021. 5. 4.
728x90

구글 플레이는 신규 리뷰 등록시 지메일을 통해 알림을 받을 수 있다

하지만 앱스토어는 알림을 받을 수 없다

커넥트 앱을 설치하면 되지만 오류가 많고 알림이 안올 때도 있다

 

앱팔로우 같은 사이트를 이용해도 되지만 굳이 돈을 낼 정도는 아니고

rss 정보를 이용해 파이썬으로 해봤는데...

전체 국가를 조회하면 굉장히 느려서 쓸만하지 않다

 

그래서 그냥 크롬 북마크의 모두 열기를 사용하기로 함

 

import feedparser

urls = {

    # 스포티파이
    'kr': 'https://itunes.apple.com/kr/rss/customerreviews/id=324684580/sortBy=mostRecent/xml',
    'us': 'https://itunes.apple.com/us/rss/customerreviews/id=324684580/sortBy=mostRecent/xml',
}


def result_parsing(url):
    updated = []
    title = []
    content = []

    feed = feedparser.parse(url)
    for item in feed['items']:
        updated.append(item['updated'])
        title.append(item['title'])
        content.append(item['content'][0].value)

    return updated, title, content


result_day = []
result_title = []
result_review = []

for key, url in urls.items():
    result_day.extend(result_parsing(url)[0])
    result_title.extend(result_parsing(url)[1])
    result_review.extend(result_parsing(url)[2])

for i in result_day:
    j = result_day.index(i)
    print(i + " / " + result_title[j] + " : " + result_review[j])
    print("----------")

----

다른 방법도 있음

pypi.org/project/app-store-scraper/

python.plainenglish.io/scraping-app-store-reviews-with-python-90e4117ccdfb

728x90