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.naverplace 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.naverplace 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.txt는 cubensys님의 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.0.tar.gz
(14.9 kB
view hashes)
Built Distribution
Close
Hashes for naverplacescraper-0.7.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb7e9e7e52ab9cff4a0a083e2c1086a66fcfdc56212b9832d2f4a41024610e4a |
|
MD5 | dd9585cef463d785b2a8a2c8ccc24e09 |
|
BLAKE2b-256 | 2d9498dc640c629fa5348bced87d1e9b883f5cad8b8403229d20e282d0f1164a |