https://github.com/mickamy/bingimagecrawler
https://github.com/mickamy/bingimagecrawler
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mickamy/bingimagecrawler
- Owner: mickamy
- Created: 2016-07-26T15:19:17.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-27T01:33:42.000Z (almost 10 years ago)
- Last Synced: 2025-02-27T09:57:35.508Z (over 1 year ago)
- Language: Ruby
- Size: 11.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BingImageCrawler
Bingの画像検索APIを叩いて結果の画像をローカルに保存するだけのやつ
## 準備
- [Microsoft Azure Marketplace](https://datamarket.azure.com/home?lc=1041)に登録
- [Bing Search API](https://datamarket.azure.com/dataset/bing/search)をサブスクリプト
- マイアカウントのプライマリアカウントキーを控えておく
## 使い方
- `git clone`
- `cd {project_dir}`
- `bundle install`
- 上で作成したアカウントキーを`config.yml`の`YOUR_API_KEY`のところに入力
- `ruby crawler.rb`
- 検索かけたいキーワードを入力
- output_{query_keyword}_{date}ディレクトリ配下に画像データが保存される
## Thanks to
[open-uri-redirections](https://github.com/open-uri-redirections/open_uri_redirections)
[searchbing](https://github.com/rcullito/searchbing)