Skip to main content

Scrapes text data about the store/company from Naver Place.

Project description

SNS text scraper

네이버 플레이스에 게시된 업체의 리뷰 데이터들를 추출해 주는 봇.

Installation

$ pip install naverplacescraper

Usage

자세한 사용 방법은 example 디렉터리에 사용 예제 노트북 참고.

Naver place

네이버 플레이스에 등록된 업체들의 description 데이터과 review 데이터를 추출.

Quick start

Search by name

네이버 플레이스에 검색 결과에서 가장 첫번째 결과를 추출.

네이버 지도의 첫번째 검색결과로 검색되는 업체 데이터를 가져오기 때문에 검색결과에 따라 원하는 업체의 데이터가 뽑히지 않을 수 있음. 그럴땐 store.info['search_results'] 로 검색 결과를 확인해보고 검색하길 원하는 업체의 id로 검색.

from naverplacescraper import Store

store = Store('<store name>', location='제주')  # location defaults to '서울'
description = store.get_description()
reviews = store.get_reviews()  # defaults to 100 reviews.

search_results = store.info['search_results']  # list of search results

Search by id

업체의 id를 알때 사용.

from naverplacescraper import Store

store = Store('21270438', location='제주', by_id=True)
description = store.get_description()
reviews = store.get_reviews()

Output

description: str

'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.'

reviews: pandas.DataFrame

| author | review |
|--------|--------|
|   xxxx | xxxxxx |

Credit

좌표를 설정하는데 사용된 kor_coordinates.txtcubensys님의 Korea_District에 있는 대한민국_기초자치단체_중심점_2017.csv를 사용하였습니다.

Disclaimer

이 프로젝트는 비상업적 용도를 위해 제작되었습니다. 용도에 맞게 사용해주시길 바랍니다.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

naverplacescraper-0.7.1.tar.gz (14.9 kB view hashes)

Uploaded Source

Built Distribution

naverplacescraper-0.7.1-py3-none-any.whl (14.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page