From 7f9bd6b7e74b6a2479358815b7fd00397ad1f8d0 Mon Sep 17 00:00:00 2001
From: future28 <porky.dxp@gmail.com>
Date: Sun, 22 Dec 2013 19:06:16 +1100
Subject: [PATCH 1/3] Added timing randomisation

---
 webstagrambot.py | 32 ++++++++++++++++++++++++++------
 1 file changed, 26 insertions(+), 6 deletions(-)

diff --git a/webstagrambot.py b/webstagrambot.py
index bea0336..1dfa0d6 100644
--- a/webstagrambot.py
+++ b/webstagrambot.py
@@ -18,7 +18,7 @@
 - make sure you have the pycurl library installed
 - log into web.stagram.com with your instagram account and approve the app
 - edit between lines 42 and 52
-- from the command line, run "python webstagram.py"
+- from the command line, run "python webstagramboy.py"
 - enjoy!
 
 v1.0 updates:
@@ -29,6 +29,12 @@
 *** thank you Nick, John, Max, Shahar, Charlie for the help
 '''
 
+'''
+Edited by Joel Mackenzie, December 2013.
+Implemented random time delay between likes.
+Tested Dec 22 2013
+'''
+
 import os
 import pycurl
 import cStringIO
@@ -36,28 +42,37 @@
 import random
 import time
 
+#for timing
+random.seed()
+
+
+
 ##### EDIT THESE BELOW
 
 # your instagram username and password
-username = "username"
-password = "password"
+username = "yourusernamehere"
+password = "yourpasswordhere"
 
-#set a sleep timer between each like.  Set value to 0 if you don't want it to sleep at all
-sleeptimer = 5
+#Random interval range. Time between likes will be between upper and lower.
+lower = 17
+upper = 33
 
 #set a like limit per hashtag.  Set value to 0 if you don't want a limit
 hashtaglikelimit = 100
 
 #your list of hashtags
-hashtags = ["love","instagood","me","cute","photooftheday","tbt","instamood","iphonesia","picoftheday","igers","girl","beautiful","instadaily","tweegram","summer","instagramhub","follow","bestoftheday","iphoneonly","igdaily","happy","picstitch","webstagram","fashion","sky","nofilter","jj","followme","fun","smile","sun","pretty","instagramers","food","like","friends","lol","hair","nature","swag","onedirection","bored","funny","life","cool","beach","blue","dog","pink","art","hot","my","family","sunset","photo","versagram","instahub","amazing","statigram","girls","cat","awesome","throwbackthursday","repost","clouds","baby","red","music","party","black","instalove","night","textgram","followback","all_shots","jj_forum","igaddict","yummy","white","yum","bestfriend","green","school","likeforlike","eyes","sweet","instago","tagsforlikes","style","harrystyles","2012","foodporn","beauty","ignation","niallhoran","i","boy","nice","halloween","instacollage"]
+hashtags =["love","instagood","me","cute","photooftheday","tbt","instamood","iphonesia","picoftheday","igers","girl","beautiful","instadaily","tweegram","summer","instagramhub","follow","bestoftheday","iphoneonly","igdaily","happy","picstitch","webstagram","fashion","sky","nofilter","jj","followme","fun","smile","sun","pretty","instagramers","food","like","friends","lol","hair","nature","swag","onedirection","bored","funny","life","cool","beach","blue","dog","pink","art","hot","my","family","sunset","photo","versagram","instahub","amazing","statigram","girls","cat","awesome","throwbackthursday","repost","clouds","baby","red","music","party","black","instalove","night","textgram","followback","all_shots","jj_forum","igaddict","yummy","white","yum","bestfriend","green","school","likeforlike","eyes","sweet","instago","tagsforlikes","style","harrystyles","2012","foodporn","beauty","ignation","niallhoran","i","boy","nice","halloween","instacollage"]
 
 ##### NO NEED TO EDIT BELOW THIS LINE
 
+
+
 browsers = ["IE ","Mozilla/","Gecko/","Opera/","Chrome/","Safari/"]
 operatingsystems = ["Windows","Linux","OS X","compatible","Macintosh","Intel"]
 
 def login():
     try:
+
         os.remove("pycookie.txt")
     except:
         pass
@@ -166,6 +181,7 @@ def like():
             if len(likedata)>0:
                 for imageid in likedata:
                     if hashtaglikelimit > 0 and hashtaglikes >= hashtaglikelimit:
+                        print "breaka"
                         break
                     repeat = True
                     while repeat:
@@ -197,6 +213,10 @@ def like():
                             print "You liked #"+tag+" image "+imageid+"! Like count: "+str(likecount)
                             repeat = False
                             sleepcount = 0
+
+                            #Pulls a random integer out between lower and upper
+                            sleeptimer = random.randint(lower, upper)
+                            print "Waiting " + str(sleeptimer) + " seconds before liking another image\n"
                             if sleeptimer > 0:
                                 time.sleep(sleeptimer)
                         else:

From aace5188422015e361cd354807e441b7d77d82a4 Mon Sep 17 00:00:00 2001
From: future28 <porky.dxp@gmail.com>
Date: Sun, 22 Dec 2013 19:09:20 +1100
Subject: [PATCH 2/3] Added timing randomisation

---
 webstagrambot.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/webstagrambot.py b/webstagrambot.py
index 1dfa0d6..d016a8c 100644
--- a/webstagrambot.py
+++ b/webstagrambot.py
@@ -18,7 +18,7 @@
 - make sure you have the pycurl library installed
 - log into web.stagram.com with your instagram account and approve the app
 - edit between lines 42 and 52
-- from the command line, run "python webstagramboy.py"
+- from the command line, run "python webstagrambot.py"
 - enjoy!
 
 v1.0 updates:

From 501bf26d7364cd63685daf16f8ea4509faeda8f5 Mon Sep 17 00:00:00 2001
From: future28 <porky.dxp@gmail.com>
Date: Sun, 22 Dec 2013 19:10:08 +1100
Subject: [PATCH 3/3] Added timing randomisation

---
 webstagrambot.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/webstagrambot.py b/webstagrambot.py
index d016a8c..0d8974e 100644
--- a/webstagrambot.py
+++ b/webstagrambot.py
@@ -61,7 +61,7 @@
 hashtaglikelimit = 100
 
 #your list of hashtags
-hashtags =["love","instagood","me","cute","photooftheday","tbt","instamood","iphonesia","picoftheday","igers","girl","beautiful","instadaily","tweegram","summer","instagramhub","follow","bestoftheday","iphoneonly","igdaily","happy","picstitch","webstagram","fashion","sky","nofilter","jj","followme","fun","smile","sun","pretty","instagramers","food","like","friends","lol","hair","nature","swag","onedirection","bored","funny","life","cool","beach","blue","dog","pink","art","hot","my","family","sunset","photo","versagram","instahub","amazing","statigram","girls","cat","awesome","throwbackthursday","repost","clouds","baby","red","music","party","black","instalove","night","textgram","followback","all_shots","jj_forum","igaddict","yummy","white","yum","bestfriend","green","school","likeforlike","eyes","sweet","instago","tagsforlikes","style","harrystyles","2012","foodporn","beauty","ignation","niallhoran","i","boy","nice","halloween","instacollage"]
+hashtags = ["love","instagood","me","cute","photooftheday","tbt","instamood","iphonesia","picoftheday","igers","girl","beautiful","instadaily","tweegram","summer","instagramhub","follow","bestoftheday","iphoneonly","igdaily","happy","picstitch","webstagram","fashion","sky","nofilter","jj","followme","fun","smile","sun","pretty","instagramers","food","like","friends","lol","hair","nature","swag","onedirection","bored","funny","life","cool","beach","blue","dog","pink","art","hot","my","family","sunset","photo","versagram","instahub","amazing","statigram","girls","cat","awesome","throwbackthursday","repost","clouds","baby","red","music","party","black","instalove","night","textgram","followback","all_shots","jj_forum","igaddict","yummy","white","yum","bestfriend","green","school","likeforlike","eyes","sweet","instago","tagsforlikes","style","harrystyles","2012","foodporn","beauty","ignation","niallhoran","i","boy","nice","halloween","instacollage"]
 
 ##### NO NEED TO EDIT BELOW THIS LINE