Jacks Tumblr Auto-Follow Imacro Script

I have a request JackSparrow.

Could you make a script that scrapes all of the urls to the blogs that you are already following? If you do this I can weed out all the blogs that you follow already and the duplicates using the obove program.

here is how

1. clik on hunt mode
2. clik on import and load the list of blogs you are following
3. click add and type in something you can later search for, example "here start new blogs"
4. clik on import and load the list of blogs that you just scraped
5. close program and navigate to pray.dat
6. open pray.dat and search for "here start new blogs"
every url after "here start new blogs" will be a new one with the duplicates removed.
7. copy those and run the script to follow them.
 
your script for scraping the urls seems to mess up when tumblr for some reason dumps your already loaded posts. I searched for a tag that had only a couple of hundred posts total and scrolled all the way to the bottom so that no more posts would load. I had let it run for a while and when I came back it was loading more posts and putting the "http://www.tumblr.com/tagged/taghere" in the tumblr.txt file, over and over again.

I'm wondering if this maybe has something to do with my hardware. Like, maybe I ran out of ram or firefox dumped some cache.
 
Last edited:
your script for scraping the urls seems to mess up when tumblr for some reason dumps your already loaded posts. I searched for a tag that had only a couple of hundred posts total and scrolled all the way to the bottom so that no more posts would load. I had let it run for a while and when I came back it was loading more posts and putting the "http://www.tumblr.com/tagged/taghere" in the tumblr.txt file, over and over again.

This is the awkwardness of how Tumblr loads post and the unstableness of imacro scripts because of this, i just wish tumblr would list posts in a user friendly way so i can create a better scraping script.
 
Here's the script for scraping users you have followed:

Code:
VERSION BUILD=7401110 RECORDER=FX
SET !TIMEOUT_STEP 0
SET !TIMEOUT_PAGE 2
SET !ERRORIGNORE YES
TAB T=1
TAG POS=1 TYPE=IMG ATTR=SRC:http://*.media.tumblr.com/avatar_*
WAIT SECONDS=1
ADD !EXTRACT {{!URLCURRENT}}
SAVEAS TYPE=EXTRACT FOLDER=folderwhereyourtxtis FILE=Tumblrfollow.txt
WAIT SECONDS=1
BACK
WAIT SECONDS=2
TAG POS=2 TYPE=IMG ATTR=SRC:http://*.media.tumblr.com/avatar_*
WAIT SECONDS=1
ADD !EXTRACT {{!URLCURRENT}}
SAVEAS TYPE=EXTRACT FOLDER=folderwhereyourtxtis FILE=Tumblrfollow.txt
WAIT SECONDS=1
BACK
WAIT SECONDS=2
TAG POS=3 TYPE=IMG ATTR=SRC:http://*.media.tumblr.com/avatar_*
WAIT SECONDS=1
ADD !EXTRACT {{!URLCURRENT}}
SAVEAS TYPE=EXTRACT FOLDER=folderwhereyourtxtis FILE=Tumblrfollow.txt
WAIT SECONDS=1
BACK
WAIT SECONDS=2
TAG POS=4 TYPE=IMG ATTR=SRC:http://*.media.tumblr.com/avatar_*
WAIT SECONDS=1
ADD !EXTRACT {{!URLCURRENT}}
SAVEAS TYPE=EXTRACT FOLDER=folderwhereyourtxtis FILE=Tumblrfollow.txt
WAIT SECONDS=1
BACK
WAIT SECONDS=2
TAG POS=5 TYPE=IMG ATTR=SRC:http://*.media.tumblr.com/avatar_*
WAIT SECONDS=1
ADD !EXTRACT {{!URLCURRENT}}
SAVEAS TYPE=EXTRACT FOLDER=folderwhereyourtxtis FILE=Tumblrfollow.txt
WAIT SECONDS=1
BACK
WAIT SECONDS=2
TAG POS=6 TYPE=IMG ATTR=SRC:http://*.media.tumblr.com/avatar_*
WAIT SECONDS=1
ADD !EXTRACT {{!URLCURRENT}}
SAVEAS TYPE=EXTRACT FOLDER=folderwhereyourtxtis FILE=Tumblrfollow.txt
WAIT SECONDS=1
BACK
WAIT SECONDS=2
TAG POS=7 TYPE=IMG ATTR=SRC:http://*.media.tumblr.com/avatar_*
WAIT SECONDS=1
ADD !EXTRACT {{!URLCURRENT}}
SAVEAS TYPE=EXTRACT FOLDER=folderwhereyourtxtis FILE=Tumblrfollow.txt
WAIT SECONDS=1
BACK
WAIT SECONDS=2
TAG POS=8 TYPE=IMG ATTR=SRC:http://*.media.tumblr.com/avatar_*
WAIT SECONDS=1
ADD !EXTRACT {{!URLCURRENT}}
SAVEAS TYPE=EXTRACT FOLDER=folderwhereyourtxtis FILE=Tumblrfollow.txt
WAIT SECONDS=1
BACK
WAIT SECONDS=2
TAG POS=9 TYPE=IMG ATTR=SRC:http://*.media.tumblr.com/avatar_*
WAIT SECONDS=1
ADD !EXTRACT {{!URLCURRENT}}
SAVEAS TYPE=EXTRACT FOLDER=folderwhereyourtxtis FILE=Tumblrfollow.txt
WAIT SECONDS=1
BACK
WAIT SECONDS=2
TAG POS=10 TYPE=IMG ATTR=SRC:http://*.media.tumblr.com/avatar_*
WAIT SECONDS=1
ADD !EXTRACT {{!URLCURRENT}}
SAVEAS TYPE=EXTRACT FOLDER=folderwhereyourtxtis FILE=Tumblrfollow.txt
WAIT SECONDS=1
BACK
WAIT SECONDS=2
TAG POS=11 TYPE=IMG ATTR=SRC:http://*.media.tumblr.com/avatar_*
WAIT SECONDS=1
ADD !EXTRACT {{!URLCURRENT}}
SAVEAS TYPE=EXTRACT FOLDER=folderwhereyourtxtis FILE=Tumblrfollow.txt
WAIT SECONDS=1
BACK
WAIT SECONDS=2
TAG POS=12 TYPE=IMG ATTR=SRC:http://*.media.tumblr.com/avatar_*
WAIT SECONDS=1
ADD !EXTRACT {{!URLCURRENT}}
SAVEAS TYPE=EXTRACT FOLDER=folderwhereyourtxtis FILE=Tumblrfollow.txt
WAIT SECONDS=1
BACK
WAIT SECONDS=2
TAG POS=13 TYPE=IMG ATTR=SRC:http://*.media.tumblr.com/avatar_*
WAIT SECONDS=1
ADD !EXTRACT {{!URLCURRENT}}
SAVEAS TYPE=EXTRACT FOLDER=folderwhereyourtxtis FILE=Tumblrfollow.txt
WAIT SECONDS=1
BACK
WAIT SECONDS=2
TAG POS=14 TYPE=IMG ATTR=SRC:http://*.media.tumblr.com/avatar_*
WAIT SECONDS=1
ADD !EXTRACT {{!URLCURRENT}}
SAVEAS TYPE=EXTRACT FOLDER=folderwhereyourtxtis FILE=Tumblrfollow.txt
WAIT SECONDS=1
BACK
WAIT SECONDS=2
TAG POS=15 TYPE=IMG ATTR=SRC:http://*.media.tumblr.com/avatar_*
WAIT SECONDS=1
ADD !EXTRACT {{!URLCURRENT}}
SAVEAS TYPE=EXTRACT FOLDER=folderwhereyourtxtis FILE=Tumblrfollow.txt
WAIT SECONDS=1
BACK
WAIT SECONDS=2
TAG POS=16 TYPE=IMG ATTR=SRC:http://*.media.tumblr.com/avatar_*
WAIT SECONDS=1
ADD !EXTRACT {{!URLCURRENT}}
SAVEAS TYPE=EXTRACT FOLDER=folderwhereyourtxtis FILE=Tumblrfollow.txt
WAIT SECONDS=1
BACK
WAIT SECONDS=2
TAG POS=17 TYPE=IMG ATTR=SRC:http://*.media.tumblr.com/avatar_*
WAIT SECONDS=1
ADD !EXTRACT {{!URLCURRENT}}
SAVEAS TYPE=EXTRACT FOLDER=folderwhereyourtxtis FILE=Tumblrfollow.txt
WAIT SECONDS=1
BACK
WAIT SECONDS=2
TAG POS=18 TYPE=IMG ATTR=SRC:http://*.media.tumblr.com/avatar_*
WAIT SECONDS=1
ADD !EXTRACT {{!URLCURRENT}}
SAVEAS TYPE=EXTRACT FOLDER=folderwhereyourtxtis FILE=Tumblrfollow.txt
WAIT SECONDS=1
BACK
WAIT SECONDS=2
TAG POS=19 TYPE=IMG ATTR=SRC:http://*.media.tumblr.com/avatar_*
WAIT SECONDS=1
ADD !EXTRACT {{!URLCURRENT}}
SAVEAS TYPE=EXTRACT FOLDER=folderwhereyourtxtis FILE=Tumblrfollow.txt
WAIT SECONDS=1
BACK
WAIT SECONDS=2
TAG POS=20 TYPE=IMG ATTR=SRC:http://*.media.tumblr.com/avatar_*
WAIT SECONDS=1
ADD !EXTRACT {{!URLCURRENT}}
SAVEAS TYPE=EXTRACT FOLDER=folderwhereyourtxtis FILE=Tumblrfollow.txt
WAIT SECONDS=1
BACK
WAIT SECONDS=2
TAG POS=21 TYPE=IMG ATTR=SRC:http://*.media.tumblr.com/avatar_*
WAIT SECONDS=1
ADD !EXTRACT {{!URLCURRENT}}
SAVEAS TYPE=EXTRACT FOLDER=folderwhereyourtxtis FILE=Tumblrfollow.txt
WAIT SECONDS=1
BACK
WAIT SECONDS=2
TAG POS=22 TYPE=IMG ATTR=SRC:http://*.media.tumblr.com/avatar_*
WAIT SECONDS=1
ADD !EXTRACT {{!URLCURRENT}}
SAVEAS TYPE=EXTRACT FOLDER=folderwhereyourtxtis FILE=Tumblrfollow.txt
WAIT SECONDS=1
BACK
WAIT SECONDS=2
TAG POS=23 TYPE=IMG ATTR=SRC:http://*.media.tumblr.com/avatar_*
WAIT SECONDS=1
ADD !EXTRACT {{!URLCURRENT}}
SAVEAS TYPE=EXTRACT FOLDER=folderwhereyourtxtis FILE=Tumblrfollow.txt
WAIT SECONDS=1
BACK
WAIT SECONDS=2
TAG POS=24 TYPE=IMG ATTR=SRC:http://*.media.tumblr.com/avatar_*
WAIT SECONDS=1
ADD !EXTRACT {{!URLCURRENT}}
SAVEAS TYPE=EXTRACT FOLDER=folderwhereyourtxtis FILE=Tumblrfollow.txt
WAIT SECONDS=1
BACK
WAIT SECONDS=2
TAG POS=25 TYPE=IMG ATTR=SRC:http://*.media.tumblr.com/avatar_*
WAIT SECONDS=1
ADD !EXTRACT {{!URLCURRENT}}
SAVEAS TYPE=EXTRACT FOLDER=folderwhereyourtxtis FILE=Tumblrfollow.txt
WAIT SECONDS=1
BACK
WAIT SECONDS=2

Run script then click next page and run script again, repeat this process till you have scraped all the users you are following.
 
Last edited:
Thnx for the script, you have made this so much more easier for me.

I'm wondering if it would be possible to make a Grease Monkey script to make the post loading more imacro friendly, but I don't know anything about scripts or coding, so this might be stupid.

Just a heads up, your script for scraping people you follow seems to skip those accounts that have a default avatar and end up going back to the last batch of followed blogs in the end. I didn't notice and ended up rescraping a page of followed blogs several times.
 
Last edited:
Thnx for the script, you have made this so much more easier for me.

I'm wondering if it would be possible to make a Grease Monkey script to make the post loading more imacro friendly, but I don't know anything about scripts or coding, so this might be stupid.

Just a heads up, your script for scraping people you follow seems to skip those accounts that have a default avatar and end up going back to the last batch of followed blogs in the end. I didn't notice and ended up rescraping a page of followed blogs several times.

That's the bloody awkwardness of Tumblr and imacro scripts. If someone with bot knowledge could make a bot that could scrape usernames this would probably work better.
 
Dude, I can't give rep from my phone, so I just have to post and say YOU ROCK! Thanks for making this available!

Sent from my DROID BIONIC using Tapatalk 2
 
This will give a nice list of username urls which you can manually edit for duplicates, i am sure there is a fast way to delete duplicates in a list of text with some software so if anyone has some suggestions.
Search following in any search engine to get some methods:

delete duplicate text
 
Some advice for people using this, the script for scraping blogs to follow is much more stable if you block images from static.tumblr.com and media.tumblr.com

to do this go to Options-> click on "exceptions" that is after the tickbox for "load images automatically-> block the two sources

you can also block all the images from loading, but I use firefox for everything. Also the script seems to mess up when you scroll down while it is runnin. Just block the images and let it run in another window.
 
Last edited:
I figured out a way to get the script even more stable.

1. block images from static.tumblr.com and media.tumblr.com*/preferably block all images from loading
2. Scroll down and load a good number of posts.
3. right click and "save page as"
*4. delete all the .gif .jpg and .png files from the downloaded "taghere_files" folder
5. open your downloaded taghere.htm file and start the script

I came up with this because the script was hanging on one specific persons blog and it was ruining everything. I just removed the offending person's posts and everything worked :)
I'm going to just start using chrome and let the scripts run in FF. This way I can disable images and I don't need to delete any files from the "taghere_files" folder or compromise the script by doing something FF doesn't like.
 
Hi guys, I have a problem here
My loop function isn't working. When I copy paste the same code in the script multiple times, It is following the same person over and over again . It is not moving on to the next blog.
What do I do?
Thanks :)
 
Hi guys, I have a problem here
My loop function isn't working. When I copy paste the same code in the script multiple times, It is following the same person over and over again . It is not moving on to the next blog.
What do I do?
Thanks :)

Which version of the script are you referring to?
 
Ok, I have figured out how to make it even easier to scrape a list of blogs to follow.

What you will need: notepad++ http://notepad-plus-plus.org/

1. Go to hxxp://www.tumblr.com/tagged/YOURTAGHERE
2. Scroll all the way down or until you feel you've scrolled down far enough and gotten a good amount of posts.
3. Right click and "save page as", (download is pretty big and it lags my FF), change extension to txt
4. Open the txt file in Notepad++
5. Press Ctrl+F and go to the "Mark" tab
6. Select "Bookmark Line" and "Regular Expression"
7. Paste
Code:
<a href="[^.]*\.tumblr\.com\/">
into the search field and click on "Mark All" (this might take a while)
8. Search->Bookmark->Copy Bookmarked Lines->Delete everything->paste the lines you just copied
9. Press Ctrl+h, select regular expression and replace all >(.*)>: with nothing, then replace all <(.*)> with nothing.
10. Then replace all a single space with nothing. This removes the whitespace.
11. Finally replace all <ahref= with nothing. Save the document.

You now have a clean list of urls that you can use the follow script on. Of course use PBSSC to remove duplicates and check against blogs that you are already following. View page source does not work
 
Last edited:
Hello, yeah it works but I think that code should be different because when I search for the code you gave me, it says ' Zero results' found. please clarify. thank you.
 
Hello, yeah it works but I think that code should be different because when I search for the code you gave me, it says ' Zero results' found. please clarify. thank you.

try this
Code:
<a href="(.*).tumblr.com/">

make sure "Regular Expression" is selected
 
Last edited:
Yes, got it. I am able to scrap the usernames (with the Notepad ++ and I used excel to remove the duplicates).

However the script to follow the scraped usernames (post # 39 ) is showing this error : SyntaxError: wrong format of CMDLINE command, line: 5 (Error code: -910)

I pasted the text file location correctly and all the tumblr blogs are in the format of http [blog address] in the text file. I am trying to run the script in the 'Followers' page.

Please let me know how to make it work. Thanks in advance :)
 
Ok i have gone back to the drawing board and learnt another essential imacros command for scraping urls. The script i have devised is much better than the previous tumblr user url scraper and should get a nice list of tumblr users for you to follow. Still doesn't remove duplicates from the list, but that is not such a bad thing thanks to Quazpolter's solution.

Code:
VERSION BUILD=7401110 RECORDER=FX
SET !EXTRACT_TEST_POPUP NO
SET !TIMEOUT_STEP 0
SET !TIMEOUT_PAGE 2
SET !ERRORIGNORE YES
TAB T=1
TAG POS={{!LOOP}} TYPE=A ATTR=ID:post_avatar_* EXTRACT=HREF
SAVEAS TYPE=EXTRACT FOLDER=[COLOR="#FFFF00"]folder where file is[/COLOR] FILE=Tumblr.txt
WAIT SECONDS=1

The real beauty with this new script is you can set the max loop value high and do a big scrape. ENJOY!

Incidentally i use scrapebox to remove the duplicate urls which makes it much easier for me!
 
Last edited:
First off. Great script.

It looks like the 2nd version (the one with only 14 lines) relies on entering in username to the /following page.

Using this system people are added fine, but they don't get a notification that I followed them in their dashboard - however it does show me as following them if they look at their list of followers.

However if you go to someone's profile and hit the follow button on their page, they do get a notification in their dashboard and I show up on their list of followers.

I know this because I have tested it by following my own accounts with other accounts I have.

Are other people seeing this?

Obviously people getting the notification in the dashboard is good because it creates much more awareness about you.
 
Back
Top