Giter Site home page Giter Site logo

webscraper's Introduction

WebScraper

This is Web-Scrapeing Tool for Japan EC site.
これは日本の販売サイト向けのスクレイピングツールです。

前提

  • python3実行環境
  • インターネット接続環境
  • LINE Developerの登録とアクセス鍵の取得
  • Google Cloud Platformの登録とアクセス鍵の取得
  • Googleスプレッドシートへのアクセス許可およびワークブックキーの取得

インストール方法

プログラム実行に必要なモジュールをインストールします。

cd WebScraper
pip3 install -y -r requirements.txt

使い方

検索ワードの一覧を入力

以下のようにGoogleスプレッドシートの検索ワード用シートに検索したい商品のキーワードと条件を記入します。
input_sheet

プログラムの実行

ターミナルから以下のようにしてスクレイピングツールのプログラムを実行します。
(以下はメルカリサイトを検索対象とした場合の例)

cd WebScraper/app/MercariPriceMonitor
python3 mercariPriceMonitor.py

検索結果の取得

もし検索ワードにマッチした商品が見つかりますと以下のようにLINEへ通知します。
line_notify

また、以下のようにGoogleスプレッドシートの検索結果用シートに検索したアイテムの情報が記載されます。
output_sheet

ツールが検索ワードを全て検索し終われば、設定ファイルに指定した秒数でインターバルを置いてまた検索ワードにマッチした商品を再検索しにいきます。
その際、情報を重複なくするために再検索しても検索結果用シートに記載済みのアイテムであればLINE通知とシート記載はされません。

webscraper's People

Contributors

isaonakamura avatar

Watchers

 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.