Skip to content

yasuaki640/image_scraper

Repository files navigation

image_scraper

A tool for scraping images.

This tool is made for downloading img by tag search from ig. It's forbidden to scrape from ig, so if you want to use this tool, I will not take any responsibility.

Requirements

$ node -v
v18.14.2

Usage

$ npm run build

$ npm start [keyword of images you want]

与太話

  • このツールはpythonで書かれたものの後継です。
  • 処理の流れとしては以下
    • playwrightでブラウザを起動。
    • タグ検索するurlにアクセスし、ログイン要求されるまで自動スクロール。
    • サイトが非同期で送信するリクエストをpage.onで監視し、画像urlを得る。
  • かなりアレな作りですが、サイトのDOMが変わってもある程度動いてくれるはず。
    • 動かないゴミより動くゴミということで許容しています。

About

ずっとベータ版

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published