Git Product home page Git Product logo

tripadvisor_crawler's Introduction

Tripadvisor_Crawler

해당 코드는 selenium을 활용한 dynamic crawling입니다.

총 58개의 호텔에 대해서 특정 고객들의 리뷰 데이터로부터 정보를 수집합니다. 수집하는 호텔과 고객 리스트는 사전에 확보하였으며, 수집하는 정보는 다음과 같습니다.

  • Title
  • Date
  • Review
  • isPartnership

1. tripadvisor_crawler.ipynb

이번 task를 수행하면서 마주칠 수 있는 경우의 수만 코드에 포함하였습니다.

  • 작성한 리뷰가 많아 한 페이지에 모든 리뷰가 표시되지 않고 'Show More' 버튼을 눌러야하는 경우
  • 작성한 리뷰가 많아 'Show More' 버튼을 눌러도 한 페이지에 모든 리뷰가 표시되지 않고 스크롤을 끝까지 내려야 하는 경우
  • 리뷰의 길이가 너무 길어 'More' 버튼을 눌러야 하는 경우
  • 리뷰를 삭제한 경우, 탈퇴한 회원의 경우 -> Title, Date, Review에 각각 'The review has been removed'라는 값을 대신 기입

2. tripadvisor_crawler_v2.ipynb

해당 고객의 리뷰 페이지로 바로 이동하여 크롤링합니다.

v1과 비교하였을 때 소요시간이 1/3 수준으로 감소하였습니다.

3. preprocessing.ipynb

일련의 전처리 과정을 거친 뒤,

  • tokenizing
  • pos tagging
  • stopwords
  • lemmatization

DT Matrix, TF-IDF Matrix를 생성하였습니다.

tripadvisor_crawler's People

Contributors

inextro avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.