GithubHelp home page GithubHelp logo

Comments (5)

hardikvasa avatar hardikvasa commented on May 14, 2024

@marcelloexp386

For the first issue with : i think you are using the older version of this script. A few commits back, this was changed to use _ instead of : because of compatibility issues in windows. Please update your script to the latest version of this repo.

Regarding the second issue, the correct command to search by image is si or similar_images. You can use your command...just replace -u with -si. The '-u' is used where you can copy google images link from your browser and just paste it here and it will download all the images from that page.

The description of -u might be little confusion. I will have it edited. Do let me know if that works for you.

from google-images-download.

marcelloexp386 avatar marcelloexp386 commented on May 14, 2024

Thanks @hardikvasa for your kind answer.

  1. solved
  2. tried your suggestion but still doesn't work. I was looking for example for images similar to wikipedia one:

py google_images_download.py -si "https://upload.wikimedia.org/wikipedia/commons/5/53/Wikipedia-logo-en-big.png" -l 20

but it gives me the following errors:

Item no.: 1 --> Item name = 2018-04-03 13_13_29
Evaluating...
HTTP Error 400: Bad Request
Starting Download...
Traceback (most recent call last):
File "google_images_download.py", line 775, in
errorCount = bulk_download(search_keyword,suffix_keywords,prefix_keywords,limit,main_directory)
File "google_images_download.py", line 645, in bulk_download
items,errorCount = _get_all_items(raw_html,main_directory,dir_name,limit) #get all image items and download images
File "google_images_download.py", line 574, in _get_all_items
object, end_content = _get_next_item(page)
File "google_images_download.py", line 540, in _get_next_item
start_line = s.find('rg_meta notranslate')
AttributeError: 'NoneType' object has no attribute 'find'

from google-images-download.

hardikvasa avatar hardikvasa commented on May 14, 2024

@marcelloexp386 Unfortunately I could not reproduce this error.

When I tried using your query from a windows 10, python 3 environment, I could successfully download all 20 images similar to the one you provided in the link.

Do you see this error for different image links or only this one image?

from google-images-download.

hardikvasa avatar hardikvasa commented on May 14, 2024

Closing this issue for now. Feel free to reply back if this issue still persist.

from google-images-download.

marcelloexp386 avatar marcelloexp386 commented on May 14, 2024

You are right! Now it works for me too. I tried both in gitbash and in powershell ... and it works.

from google-images-download.

Related Issues (20)

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.