-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from gumdropsteve/develop
v0.1.0
- Loading branch information
Showing
30 changed files
with
196 additions
and
72,526 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,23 @@ | ||
# Instagram ([bot.py](https://github.com/gumdropsteve/instagram/blob/master/bot.py)) | ||
Object-oriented Selenium (Python) WebDriver class providing deep-insight and task automation for Instagram users. | ||
## Instagram ([bot.py](https://github.com/gumdropsteve/instagram/blob/master/bot.py)) | ||
Object-oriented Selenium (Python) WebDriver class providing insight and task automation for Instagram users. | ||
|
||
<a href="https://github.com/SeleniumHQ/selenium" target="_blank"> | ||
<img src="https://img.shields.io/badge/built%20with-Selenium-yellow.svg" /></a> | ||
<a href="https://www.python.org/" target="_blank"> | ||
<img src="https://img.shields.io/badge/built%20with-Python3-red.svg" /></a> | ||
|
||
- up to date status: reasonably | ||
|
||
#### Abilities: | ||
- Log in to Instagram | ||
- .login() | ||
- Like posts based on hashtag | ||
- .like_posts(hashtag, hrefs) | ||
- Unfollow specific accounts | ||
- unfollow(start, end) | ||
- records the following about each unfollowed account in .csv | ||
- account id | ||
- username | ||
- profile_url | ||
- time_unfollowed | ||
- following_button | ||
- 0 if successful in finding "Following" button | ||
- 1 is unsuccessful in finding "Following" button | ||
- occours when account has either been deleted or has changed its username | ||
- on lookout for possible other causes | ||
- unfollow_button | ||
- 0 if successful in finding "Unfollow" button | ||
- 1 if unsuccessful in finding "Unfollow" button | ||
- occours when following_button returns 1 | ||
- on lookout for possible other causes | ||
- must be given list of account urls | ||
#### Future: | ||
- General comments | ||
- Smart comments | ||
- Understanding context | ||
- Follow accounts | ||
- By hashtag | ||
- By other accounts | ||
- Bring back .analyze_following() | ||
- More follower analysis | ||
- Compairson to other accounts | ||
- Identify similar accounts | ||
- Identify specific patterns/behaviors | ||
- Post analysis | ||
- Compairson | ||
- Similar accounts | ||
- Similar posts | ||
- Success tracker | ||
- Early indicators of post success | ||
- Post scraping | ||
- Memes & etc.. | ||
- Account/post tracking | ||
#### Primary Abilities: | ||
- Log in to Instagram | ||
- ig.[login()](https://github.com/gumdropsteve/instagram/blob/master/bot.py#L46) | ||
- Gather posts by hashtag | ||
- ig.[gather_posts()](https://github.com/gumdropsteve/instagram/blob/master/bot.py#L62) | ||
- Like posts based on hashtag | ||
- ig.[like_posts()](https://github.com/gumdropsteve/instagram/blob/master/bot.py#L174) | ||
- Comment or add hashtags to a post | ||
- ig.[comment()](https://github.com/gumdropsteve/instagram/blob/master/bot.py#L214) | ||
|
||
|
||
Collection of data was done via [Helper Tools for Instagram](https://bit.ly/2RarbLj) | ||
#### Example Uses: | ||
- [add_hashtags](https://github.com/gumdropsteve/instagram/blob/master/run.py#L26) to a post as a comment | ||
- Gather posts then [like_by_hashtag](https://github.com/gumdropsteve/instagram/blob/master/run.py#L45) after making sure you haven't already liked them | ||
- [rec_n_check](https://github.com/gumdropsteve/instagram/blob/develop/run.py#L8) an account's followers and following to identify then (optionally) unfollow non-followbackers | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
## Thank You | ||
|
||
Thank you to Andrey from the Markets & Data YouTube channel for his [video](https://youtu.be/BGU2X5lrz9M) which laid out the base of this code. Check out the channel [here](https://www.youtube.com/channel/UCtGNWBSiriWivCbuPX4M_Wg). | ||
|
||
Early collection of following/followers data was done via Helper Tools for Instagram. See it in the Chrome Web Store [here](https://chrome.google.com/webstore/detail/helper-tools-for-instagra/hcdbfckhdcpepllecbkaaojfgipnpbpb?hl=en-US). |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.