Tag Archives: Easier Way

How To Find Pinterest Unfollowers – Pinterest Unfollow Tool

pinterest-unfollowersHow To Find Pinterest Unfollowers – Pinterest Unfollow Tool

Removing Pinterest users that do not follow you, or they unfollowed you is not and easy task. Pinterest does not make sorting and finding your unfollowers a simple process. In theory, you shouldn’t worry too much about how many people you follow and they don’t follow back, but in practice, there are some advantages to clean your profile.

You followed a few hundred people, and now your feed is filling up your feed with their pins, but they don’t get your latest, and greatest pinning creations. Or they followed you first, and you returned the favor, but later on they unfollowed you so that they look like authorities. Authorities my a… Let’s remove them from your feed, unfollow them.

Pinterest Unfollowers for IOS Enabled Devices (iPhone, or iPad)

The great news is that if you own an Apple device, such as a tablet, or an iPhone, there is an app that does specifically this. The app is called “Who Unfollow Me For Pinterest”, and you can grab it here: Who Unfollow Me For Pinterest – Yong Peng. I don’t own a MAC IOS device, so I can’t tell you how good the app is, but it’s there. A more famous app seems to have disappeared from the iTunes store, but the app was called Followers on Pinterest.

The Hard Way to Unfollow

Now, what do you do if you don’t have an IOS device? I have seen on the Internet the following suggestion:
Step one: Go to your “Followers” tab and copy/paste in a text document all of your followers.
Step Two: After this, go to your “Following” tab and compare it with your text list. Take one name at  a time from your “Following” tab, and search it in your followers text list. If you find the name, then it means that Pinterest user follows you, if you didn’t find them in the list, just unfollow them right away.

The Easier Way To Unfollow on Pinterest

How to get all followers on PinterestI didn’t even considered doing this, because I figured it would take me days to complete the process, and because I knew it had to be easier.

So, I started the work, and the first thing to was obviously to view page source, like any person with a little HTML knowledge would do. That doesn’t work. The code for the page is served dynamically, through Ajax, so you would only see around 115 users at a time. I think this is somewhat done on purpose, so that unfollowing is very hard. It is in Pinterest’s interest, to maintain an artificial buzz, like everybody follows everybody. Anyway, back to work, we need the entire list for our operation, so I started to search again. Then I realized that if we scroll down to the last item in the HTML page, and we right click the user, and choose inspect element, we also get the HTML of the page, except this time we get all the users in the HTML code.  Just right click on the body element, and choose copy as HTML.

Pinterest-Copy-HTMLAfter that paste the HTML code in a notepad, and you have all your users in a document, save that document as Followers-raw-text.txt.

IMPORTANT: Save the text as UTF8 encoding to preserve the special characters, and to avoid a script freeze when saving as Unicode.

Don’t worry if the text looks gibberish to you, you just need to find the following HTML tag: <h3>. Immediately after the tag you will find the username. Don’t try to save the document as HTML and see it in a browser. The browser will crash while loading that long list.

Pinterest Find UsersAt this point you have a few options to further clean up your list of followers, one way is to use Microsoft Word’s find and replace feature, which does a decent job but is not meant for these kind of operations. Another option is to use an advanced string find/filtering utilities, such as grep, sed, awk, etc… Here is a command I wrote to spit out a plain text list with usernames only:

awk-Pinterest-script-two

 

awk-Pinterest-script-one

I couldn’t “convince” WordPress to  allow me to post the command as a text, so I posted it as a picture. Sorry, you have to write down that manually.

At this point you have a list with followers, and a list with your followings. I heard people trying to use text compare utilities, but they don’t work if you have many followers, or if you have followed only partially boards. I know I did that. Another problem is that the usernames in the following and followers lists, are not in perfect synch chronologically, so any text comparison will be tripped. But if you know they are in the same order, it should be easy enough to use notepad++, or Winmerge, to compare the two lists and get your unfollowers.
I wrote a script in awk, to compare the two lists, and give me only the unfollowers, so I don’t have to compare manually the lists. Here is the command that does that:

awk "FNR==NR{a[$0];next}!($0 in a)" list-of-my-followers.txt list-of-followings.txt > unfollowers.txt

The list in the unfollowers.txt will contain your unfollowers. When you search for them in your Following tab, you will see two types of users, some with a button saying “Follow”, and some with a button “Unfollow”. The ones from your unfollowers.txt are either users whom you followed part of their boards, (the button will say Follow), or users whom you followed all of their boards, (the button will say Unfollow). This will prove a bit difficult to clean, but to make it easier, you might want to follow all of their boards, and maybe they’ll follow you back. If not, you can always clean up next time, if you want.

Future Development

The only thing I have to do now, is to figure out the unfollow link structure, so with a few more adjustments with awk and sed, we can create the unfollow links automatically, so we don’t have to search for the users in page. That’s my next step. If you have an idea about that, drop me a line in the comments, or send me a message with the link below.
In the mean time follow me on Pinterest I will follow back, :).

If you want to ask me a question, or if you want the list of your unfollowers delivered by email, send me a message using this form: Contact Me about the Pinterest Script

UPDATE: If all of these look gibberish to you, you can hire this guy on Fiverr, for five bucks he’ll do it for you. Actually, his gig gave me the idea to make my own script. I didn’t want to pay the five dollars. Anyway, here is the link:  Find Unfollowers on Pinterest

Compress files in Windows

As a Windows Network Administrator I always have to make space delete unneeded files, archive old files, compress files that we don’t need but we might need at some point.
I don’t use the same compression method every time, because the scenario is different. Here are a three compression methods for Windows.

Compress Files Using the NTFS Compression

Compress Contents to Save Disk Space

This method of compression only works on NTFS partitions. You don’t have the option for a FAT or FAT32 partition.
The most usual and easier way to do this is to use the Windows’ Graphical Interface and access the Advanced File Properties and select Compress contents to save disk space.

Compact – Compress files or folders from command line

If you would like to compress files from a batch file use this command line variant. Usually if you access the advanced file properties, (right-click => properties and => advanced) you have the option to compress contents to save space. Another good use of the command line is that it gives you a better view of the progress. The graphic interface sometimes hangs and you don’t know if the job is still active.

The command to compress a folder from within the folder is compact /c /s. It compresses all of the files within the folder and marks the folder as compressed so that new files are created compressed.

Why would you choose Compact and not Zipped Folder?

The main reason is that a compacted folder can be used by applications. In other words if the path of a log file points to a compacted folder this is transparent for the application that writes the log file. As a result your log files will be compacted. You cannot do this with Zipped folders or files.

Compress files using the Windows’ built-in zip archiving utility

Send to Compressed (Zipped) folder

Why would you choose Compressed (Zipped) Folder over the Compacted Folder?

The zipped Folder has better compression and better portability. The zipped folder has a slightly better compression rate, and you can copy the files to any other Operating System, send them by email and they will retain the compression. The compacted folders will only be compressed on the original location unless you compress the file again at the new destination. Note in the image below the difference between the two file compression formats. The Windows shell has the option to “show NTFS compressed files in color”, which is a great option. Note that the zipped file is slightly smaller than the compacted, (blue colored), one.

Compact (the native NTFS compression) vs Compress the send to Zipped Folder
Compact vs Compress click to enlarge

Is there a Compressed (zipped) Folder – command line variant?

Unfortunately, there isn’t any Windows built-in option. The good news though is that there is a free archiver that has a command line version as well. 7zip is a great free utility very flexible that manipulates all of the popular archiving file formats.

Compressing from the command line with 7zip is very simple, the simplest command is 7z a NewFolder.zip “New Folder” that compresses the folder New Folder into the archive: NewFolder.zip. For more options and switches type: 7z –h, note that 7z doesn’t understand the /? switch, usual on any Windows application.

Why would you choose 7Zip over the Windows’ built in compressing solutions?

The main reason is flexibility. 7zip has a lot of options/switches that control a lot of the compression aspects and it is very easy to use in a batch file.

An interesting application is to separately archive a lot of folders from a batch file. Let’s say you have 500 folders that you want to archive and you know you will be accessing those folders on a regular. It makes more sense to archive the folders separately and not in one big file. It is easier to access smaller zip files from the Windows shell and keeps the system responsive. To do this manually for 500 folders is a nightmare. Here is a command that runs from a batch file that will compress those folders separately, each folder one zip file:

for /D %%d in (*.*) do 7z a -tzip “%%d.zip” “.\%%d\*”

To run the command from the command line and not from a batch file the command is slightly different:

for /D %d in (*.*) do 7z a -tzip “%d.zip” “.\%d\*”

There are other great archiving utilities such as Winzip, Winrar, Pkzip, etc… They are not free, but you can get a trial-ware which in many cases is good enough for anybody.

A few tips on what to compress and what not.
Usually Installation files are already compressed so there is no benefit in compressing.
Digital photos in a jpg or gif format are already compressed using special algorithms.
PDF files don’t compress.
Text files, (plain text, log files, etc…) compress the best.
Word files can be compressed but not as much as the text files.