Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Co-authored-by: UltralyticsAssistant <[email protected]>
glenn-jocher and UltralyticsAssistant authored Aug 26, 2024
1 parent 3968a0f commit cff96ad
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@

Welcome to the Bing image scraping tool, updated and maintained by Ultralytics. This repository contains updated code originally from [https://github.com/hardikvasa/google-images-download](https://github.com/hardikvasa/google-images-download), enabling users to efficiently scrape and download images from Bing for various applications like machine learning, data analysis, or personal projects.

[![Ultralytics Actions](https://github.com/ultralytics/google-images-download/actions/workflows/format.yml/badge.svg)](https://github.com/ultralytics/google-images-download/actions/workflows/format.yml) <a href="https://ultralytics.com/discord"><img alt="Discord" src="https://img.shields.io/discord/1089800235347353640?logo=discord&logoColor=white&label=Discord&color=blue"></a> <a href="https://community.ultralytics.com"><img alt="Ultralytics Forums" src="https://img.shields.io/discourse/users?server=https%3A%2F%2Fcommunity.ultralytics.com&logo=discourse&label=Forums&color=blue"></a>
[![Ultralytics Actions](https://github.com/ultralytics/google-images-download/actions/workflows/format.yml/badge.svg)](https://github.com/ultralytics/google-images-download/actions/workflows/format.yml) <a href="https://ultralytics.com/discord"><img alt="Discord" src="https://img.shields.io/discord/1089800235347353640?logo=discord&logoColor=white&label=Discord&color=blue"></a> <a href="https://community.ultralytics.com"><img alt="Ultralytics Forums" src="https://img.shields.io/discourse/users?server=https%3A%2F%2Fcommunity.ultralytics.com&logo=discourse&label=Forums&color=blue"></a> <a href="https://reddit.com/r/ultralytics"><img alt="Ultralytics Reddit" src="https://img.shields.io/reddit/subreddit-subscribers/ultralytics?style=flat&logo=reddit&logoColor=white&label=Reddit&color=blue"></a>

## 🐳 Docker Run

1 change: 0 additions & 1 deletion beautiful_scraper.py
Original file line number Diff line number Diff line change
@@ -34,7 +34,6 @@ def download_baidu(word):

def download_google(word):
"""Downloads images from Bing for a given search word by scraping image links and using curl to download."""

# url = 'https://www.google.com/search?q=' + word + '&client=opera&hs=cTQ&source=lnms&tbm=isch&sa=X&ved=0ahUKEwig3LOx4PzKAhWGFywKHZyZAAgQ_AUIBygB&biw=1920&bih=982'
url = f"https://www.bing.com/images/search?q={word}"
soup = BeautifulSoup(requests.get(url).text, "html.parser")
2 changes: 2 additions & 0 deletions bing_scraper.py
Original file line number Diff line number Diff line change
@@ -382,6 +382,8 @@ def user_input():


class googleimagesdownload:
"""A class for downloading images from Google Images using various search parameters and filters."""

def __init__(self):
"""Initializes a googleimagesdownload object to fetch images from Google Images."""
pass

0 comments on commit cff96ad

Please sign in to comment.