GithubHelp home page GithubHelp logo

Comments (13)

dtozik avatar dtozik commented on May 28, 2024 5

in google-images-download.py:

if info is None: info = data[11]

change 11 to 22

from google-images-download.

nnyj avatar nnyj commented on May 28, 2024 3

in google-images-download.py line 407:

info = data[22]

change 22 to 25

from google-images-download.

Dries-Fierens avatar Dries-Fierens commented on May 28, 2024 1

thank you it is finally working now as intended

from google-images-download.

nnyj avatar nnyj commented on May 28, 2024 1

in google-images-download.py line 405:

info = data[9]

change 9 to 23

from google-images-download.

livan3li avatar livan3li commented on May 28, 2024

in google-images-download.py:

if info is None: info = data[11]

change 11 to 22

thank you very much! I love you.
i've been searching for a whole day to figure it out what's the problem. when i fix the problem i get a new error and i fix that, get another error. At the end of i could solve the problem by your help. As i see nobody take cares the repo for bug fixes..

from google-images-download.

Dries-Fierens avatar Dries-Fierens commented on May 28, 2024

Are you able to get images? I'm also stuck with

in google-images-download.py:
if info is None: info = data[11]
change 11 to 22

thank you very much! I love you. i've been searching for a whole day to figure it out what's the problem. when i fix the problem i get a new error and i fix that, get another error. At the end of i could solve the problem by your help. As i see nobody take cares the repo for bug fixes..

Are you able to get images? I'm also stuck with this error.

from google-images-download.

livan3li avatar livan3li commented on May 28, 2024

Are you able to get images? I'm also stuck with

in google-images-download.py:
if info is None: info = data[11]
change 11 to 22

thank you very much! I love you. i've been searching for a whole day to figure it out what's the problem. when i fix the problem i get a new error and i fix that, get another error. At the end of i could solve the problem by your help. As i see nobody take cares the repo for bug fixes..

Are you able to get images? I'm also stuck with this error.

Yes, i've just downloaded 250 images. Check this link out here i explained here how i solved.

from google-images-download.

websonder avatar websonder commented on May 28, 2024

its stop again, is there any solution so i can run it again?

from google-images-download.

marianoig4 avatar marianoig4 commented on May 28, 2024

Same problem here, I had changed

  • 11 to 22 and 23 in 407 line
  • 9 to 23 in 405 line
    And stil not working for me.....

from google-images-download.

dtozik avatar dtozik commented on May 28, 2024
def lookupJsonKey(self, object, s):
    def lookupImpl(object, s):
        isDict = False
        if isinstance(object, dict):
            isDict = True
        elif not isinstance(object, list):
            return None
        for val in object:
            if isDict:
                if val == s:
                    return object[val]
                    
            obj = object[val] if isDict else val
            ret = lookupImpl(obj, s)
            if ret != None:
                return ret
        return None
    return lookupImpl(object, s)

# Format the object in readable format
def format_object(self, object):
    data = object[1]
    main = data[3]
    info = self.lookupJsonKey(data, '2003')
    formatted_object = {}
    try:
        formatted_object['image_height'] = main[2]
        formatted_object['image_width'] = main[1]
        formatted_object['image_link'] = main[0]
        formatted_object['image_format'] = main[0][-1 * (len(main[0]) - main[0].rfind(".") - 1):]
        formatted_object['image_description'] = info[3]
        formatted_object['image_host'] = info[17]
        formatted_object['image_source'] = info[2]
        formatted_object['image_thumbnail_url'] = data[2][0]
    except Exception as e:
        print(e)
        return None
    return formatted_object

find a function 'def format_object(self, object):' and put that code patch there.

from google-images-download.

wkrkd273 avatar wkrkd273 commented on May 28, 2024

its stop again, is there any solution so i can run it again?

from google-images-download.

jocelin110 avatar jocelin110 commented on May 28, 2024

in google-images-download.py line 407:

info = data[22]

change 22 to 25

I just can't help loving you, guy!!! You are the sweet angel who made my night!!

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.