mifi / instauto

Instagram bot / automation library written in Javascript for Node.js
797 stars 145 forks source link

shouldLikeImage function #113

Closed Luen closed 1 year ago

Luen commented 2 years ago

I would love to introduce a shouldLikeImg function similar to the shouldFollowUser feature. This would return a boolean for liking photos and be null by default.

Instagram has a straightforward image recognition in the alt tag of the photo, such as "Photo by ... in .... May be an image of nature and waterfall."

The custom function logic then can do these types of checks:

114

Luen commented 2 years ago

Updated selectors.

Should this function be renamed to 'shouldLikeMedia', as it may be a video or an image?

If that's the case, I will need to add in selectors for videos.

Luen commented 2 years ago

Hey @mifi, when you get a chance, could you please test this pull request, fix the errors, and merge it please?
Much appreciated.

mifi commented 1 year ago

Hi, sorry for the delay. I have now fixed issues. note that i haven't tested this

Luen commented 1 year ago

Thank you!