Releases: gumdropsteve/instagram
Releases · gumdropsteve/instagram
GPU Support & Helper Functions as Bot Methods
v0.2.0
New
- add support for data processing w/ GPU
- use cuDF instead of pandas
- set
gpu=True
when initiating - resolves #22
- helpers.py functions now methods of InstagramBot
- resolves #30
- ig.
unfollow()
process to be cleaned up w/ v0.2.1
Improved
- general clean up & improved layouts
- run.py updated to match v0.2.0 API
- bot.py updates applied to develop branch as well
- README.md ref links updated to match v0.2.0 lines
Self-generated Awareness
Improved data comprehension
These updates aim help kick-start the effort to make use of self-generated data.
New
- InstagramBot.
shutdown()
- shut down InstagramBot
- quit webdriver (unless already quit) and save session output to
self.final_output
- note: it is ok to run this even if driver is not running (built in check)
- quit webdriver (unless already quit) and save session output to
- use this to end your scripted use of webdriver dependent methods
- i.e. after you're done liking pictures and/or commenting
- shut down InstagramBot
self.final_output
- formatted string output containing session stats
- number of posts liked + number of new / repeat posts encountered
- number of comments posted
- overall runtime + minute / second breakdown
- set by calling
shutdown
method
- formatted string output containing session stats
self.driver_on
to remember if webdriver is on or off,self.start_time
for final output
Improved
- self-generated data remembrance
- now catching (int):
self.n_posts_gathered
,self.n_new_posts
,self.n_repeat_posts
- now remembers if
self.driver_on
- now catching (int):
- ig.
quit_driver()
- checks if
self.driver_on
- alerts user if not so script can be optimized
- checks if
- noting & stringing (in general)
Followable Output & Session Totals
New:
- remember total # likes & comments
- printed after liking posts or commenting
- try/except log in error catch
- adjustable routes for log & r_log parameters for
.gather_posts()
method - print outputs so user knows what's going on in:
.gather_posts()
when:- collecting posts posts
- checking new vs repeat posts
- recording posts to
log
andr_log
.like_posts()
before & after liking the posts.comment()
after commenting
- printed error if failure when trying to comment
Improved:
- sleep > time.sleep
- better greeting
- corrected sp on pwrd check
- better error for failure to gather posts
- number of posts collected in
.gather_posts()
only output once- after gathering the posts
- was being output every 2 scrolls with total never being output
- check number of new & repeat posts to record before recording
- save time/power if none to record
- if none to record, skips recording
- lambda function for liking posts only defined once
- was being defined each time it was being used
- also removed redundant
.click()
Improve WebDriver control & Centralize Login info
v0.1.1
New:
- webdriver control methods in bot.py
- close_window()
- quit_driver()
- start_driver()
- centralized user (login) info in user.py
- requirements.txt for setting up environment
Improved:
- docstrings in bot.py
- cleaned up .gitignore
Beta open
Merge pull request #7 from gumdropsteve/develop v0.1.0