InstaPy / InstaPy/InstaPy

Refactor like_by, follow_by, comment_by => interact_by

Open
#4,013 5 comments 0 reactions 0 assignees View on GitHub
enhancement feature request
Dominant language
Python
Stars
18.2k
Forks
3.9k
PR merge metrics
No merged PRs in 30d

Description

#### In order to make InstaPy easier to use we want to cut down on the amount of ways things can be done. One of the ways to start making it simpler is to remove the separate methods `like_by_...`, `comment_by_...` and `follow_by_...` and introducing a common "interface" as `interact_by_...`.

Advantages of this feature:
- Clean up code base
- Less places to fix problems if elements change
- Deduplication of code
- Simpler documentation
- Higher level of abstraction
- Unified interface for users (always `interact_by` followed by e.g. `tags`, `users` etc.) and then controlling interactions by using `set_do_like`, `set_do_comment` and `set_do_follow`

Possible ways of achieving:
- Use the already existing methods as a "base line" on how this can be achieved

> [Back this Issue](https://opencollective.com/instapy)

---

###### Feel free to comment with adjustments and improvements

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.