Instapy: Skipping image because deemed innapropriate

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

Would it not be more logical to not increment the number of pictures liked in a sequence if one of the pictures hit one of the conditions of session.set_dont_like?

For example, if picture [1/100] includes the tag 'mumbo', a tag that is deemed inappropriate by session.set_dont_like, and it goes forth to the next picture, the amount of pictures still in sequence would be not incremented and the next picture will thus be picture [1/100] until the condition for liking that picture is true, and so forth.

The same would go for pictures that are already liked. I reckon that this would improve how predictable the script may be over a longer period of time.

InstaPy_V1 enhancement

Most helpful comment

@hillockink since we use chromedriver
1 - We can't disable image rendering, since it's chrome related and it run w/o sandbox
2 - Item 1 wouldn't impact on performance, since the hog on instagram page is JS rendering, pure CPU bound, the problems with RAM are from the development of chrome.
3 - Raspberry PI doesn't work with chromedriver and chrome, they compiled for ARM run pretty slow and google has abandoned the support for this platform

All 9 comments

Just to be sure, if you say to like 100 images, 100 ones should actually be liked, right?

Maybe we should stop collecting links than and just go clicking them on the search page (like a human would do and aligned with the "anti-bot" features)

@pekapa The only problem would be how to extract all the information you get from the separate page of each post...

@pekapa Yes, that was my intention.
@timgrossmann We would still be needing the information for each post, so I agree that would still be required.

Another idea could be to optimise the rendering of each page by disabling rendering of images to the browser. While for one user the differences would be miniscule, if one is automating several users on the same machine (especially low-performance devices such as the RPi3), that could increase performance. That is something that I experimented with during automation scripts.

I guess the code itself is not dependent on if there is an image or not, but does the clarifai API care?

@hillockink You just send the link to the image to the clarifai API endpoint, so I don't think they care 馃槈

@hillockink since we use chromedriver
1 - We can't disable image rendering, since it's chrome related and it run w/o sandbox
2 - Item 1 wouldn't impact on performance, since the hog on instagram page is JS rendering, pure CPU bound, the problems with RAM are from the development of chrome.
3 - Raspberry PI doesn't work with chromedriver and chrome, they compiled for ARM run pretty slow and google has abandoned the support for this platform

@vlntdds Thanks, I did not know that. Apart from the RAM hog Chrome; that one I am painfully experienced in. Aren't we all.

@timgrossmann if we are using the basic quickstart.py code is the Image deemed inappropriate error due to the set_dont_like tags?

Does the program only have to find part of the tag in the image text to deem it inappropriate? e.g dont_like = ['#porn'] will deem an image tagged #architectureporn unsuitable?

@SamuelMTDavies if you set it to ["porn"] than it will deem the tag #architectureporn to be unsuitable, but its current a work in progress via #211

should be fixed by #211 now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

46960 picture 46960  路  3Comments

ingorichter picture ingorichter  路  3Comments

v77v picture v77v  路  3Comments

neomh picture neomh  路  3Comments

drcyber975 picture drcyber975  路  3Comments