Instapy: Clarifai not working

Created on 13 Apr 2017  路  9Comments  路  Source: timgrossmann/InstaPy

Image check error: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//img[@class = "_icyx7"]"}
  (Session info: chrome=58.0.3029.54)
  (Driver info: chromedriver=2.29.461585 (0be2cd95f834e9ee7c46bcc7cf405b483f5ae83b),platform=Mac OS X 10.12.4 x86_64)
bug help wanted

Most helpful comment

Looks like the problem is occurring when you try to send a video to ClarifAI
For now, you can avoid that by setting .like_by_tags(tags, amount , media='Photo') when using ClarifAI so it won't try to work with videos.

All 9 comments

@songproducer Could you also post the link of the image this happened at?

I had similar problem

https://www.instagram.com/p/BTHmQRkBBqy/?tagged=frenchbulldog

Image check error: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//img[@class = "_icyx7"]"}
  (Session info: chrome=57.0.2987.133)
  (Driver info: chromedriver=2.29.461585 (0be2cd95f834e9ee7c46bcc7cf405b483f5ae83b),platform=Mac OS X 10.11.6 x86_64)

@saphuttu This really shouldn't happen...
But thank you for posting, now we know that it definitely is a video-post problem!

Interesting, this really shouldn't happen, since the Error should be catched...

except Exception as err:
      print('Image check error: {}'.format(err))
      self.logFile.write('Image check error: {}\n'.format(err))

Can i avoid this by some parameter in Clarifai or totally ignore videos while running InstaPy?

Looks like the problem is occurring when you try to send a video to ClarifAI
For now, you can avoid that by setting .like_by_tags(tags, amount , media='Photo') when using ClarifAI so it won't try to work with videos.

Thanks @pekapa!

@timgrossmann or @songproducer This issue can be closed

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wyvers picture wyvers  路  3Comments

drcyber975 picture drcyber975  路  3Comments

ghost picture ghost  路  3Comments

n0sw34r picture n0sw34r  路  3Comments

CodeMaster1 picture CodeMaster1  路  3Comments