Skip to content

Commit

Permalink
Merge pull request #7 from gumdropsteve/develop
Browse files Browse the repository at this point in the history
v0.1.0
  • Loading branch information
gumdropsteve authored Nov 10, 2019
2 parents bfbd1a9 + efb0ad5 commit 667a092
Show file tree
Hide file tree
Showing 30 changed files with 196 additions and 72,526 deletions.
66 changes: 16 additions & 50 deletions README.md
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

5 changes: 5 additions & 0 deletions THANKSto.md
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).
5 changes: 0 additions & 5 deletions _theories/README.md

This file was deleted.

165 changes: 0 additions & 165 deletions _theories/account_data.py

This file was deleted.

105 changes: 0 additions & 105 deletions _theories/post_to_ig.py

This file was deleted.

Loading

0 comments on commit 667a092

Please sign in to comment.