Tag Archives: paste

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

Domain Name Registration Spam – Scam

The Domain Name Scam

The Chinese Domain Name Scam is taking proportions and many of us received scary emails starting with this paragraph:
We are a domain name registration and dispute organization in Asia, which mainly deal with the global companies' domain name registration and internet Intellectual property right protection in Asia. Currently, we have a pretty important issue needing to confirm with your company.
On Nov 26, 2010, we received an application formally, one company named “Fake Company Holdings Ltd.” wanted to applied for the Internet brand “yourCompanyName.com” and some domain names through our body.

Now at first sight this looks very scary and the first reaction is to reply. Don’t do that. Delete the email right away and don’t bother unless protecting the Trademark is an issue for you. Read these two posts about how this scam messages can help you with that:
Domain Names Scam Explained
Trademark and Domain Names Protection

How does the Domain Name Scam work?

The spammer collects information from the Domain Name registration which is, in most of the cases, public. This information contains the owner name, the email address, and of course the Domain Name. This information is the base of an email sent to the CEO. The email informs the owner that another company is trying to register the domain name in cause but for another TLD.
As the owner of the domain you “get the benefit of being announced of this purchase” and are being offered to buy it yourself. For instance I own head-massage.net and someone is trying to register head-massage.tw and head-massage.cn, etc… Other country-specific flavors (.asia, .biz, .cc, .cn, .com. cn., .hk, etc.) can be mentioned. You are informed about this and offered to buy the domain or the domains. The email is devised in such way that your domains even if you don’t need it.


An example of a Domain Name Spam email

These emails are personalized to the owner/manager of a commercial Internet brand and insinuates that the brand is at risk due to a third party application being made for the respective trademark name. The nice foreign domain registrar they are will ask you if you want to secure all of the variants of your Domain Name so that you can protect your Internet brand.

Most of these SPAMS have Chinese senders. The email content is changing becoming more and more persuasive and subtle.
If you received one of these spams, paste a copy of the email in the comments. I also work as a SYS-Admin for a company with an important Domain Names portfolio and we get quite a lot of these.
Here is a copy of one of these email messages:
Subject: URGENT---dispute of internet intellectual property safeguard
(If you are not the person who is in charge of this, please transfer to the right person/department. Thank you.)

Dear CEO,

We are the department of registration service in China.we have something need to confirm with you.We formally received an application on April 27, 2009,One Japan company which self-styled "Path soft investment corp" are applying to register (my-head-massage head-massage) as internet brand name and domain names as below (head-massage.cc head-massage.name head-massage.com.hk my-head-massage.name my-head-massage.cc my-head-massage.com.hk my-head-massage.ae my-head-massage.tel my-head-massage.my head-massage.ae head-massage.tel head-massage.my. .etc).

After our initial checking,we found the internet brand name and these domain names being applied are as same as your company’s, so we need to get the confirmation from your company.If the aforesaid company is your business partner or your subsidiary company, please DO NOT reply us,we will approve the application automatically.If you have no any relationship with this company,please contact us within 10 workdays. If out of the deadline,we will approve the application submitted by "Path soft investment corp" unconditionally.

Please forward the email to your decision maker,and let them contact me in time,so that we can handle this in reasonable,Look forwarding to hearing from you.

Best Regards,

Jake Shen
Senior Consultant

If you received a similar letter please drop it in the comments area so we would have more examples.

How to use 301 Redirect for moved or missing pages

What is 301 redirect?

301 redirect is a method of redirecting pages on your website to other pages on your site or elsewhere.

Why would you need to redirect content?

It is a method to retain search engine rankings for a page. If a page has previously been ranked by search engines and you changed the file name during a major redesign, or moved some of the content to another website the ranking is lost if you just move the page. If instead you do a 301 redirection the old ranking will be passed on to the new page.
Another use is to redirect traffic for deleted content somewhere on your website so that the traffic is not lost. Sometimes you need to remove outdated content and since you are still receiving traffic for those pages you would like to keep those visits.

What means a 301 Redirection?

301 redirect means “moved permanently”. When a search engine accesses a file marked as “Moved Permanently” it will note the new address and consider the new location as the valid one, passing on the ranking for the new page.

How to do a 301 Redirection

Apache 301 Redirection
Look for the .htacces file on the root of your website’s directory.
If there isn’t one create it. On Windows you might have difficulties to create a file with an empty name and only the extension. But once the file created, for instance on the host operating system you can edit the file using notepad or wordpad.
The simplest method is to place the following line into your .htaccess file:
redirect 301 /old-directory/old.htm http://www.mywebsite.com/new.htm
Don’t add the whole address on the first part, (the www) as the server uses its root directory as the referral point and not the http address.
Copy paste the statement below and modify it to reflect your needed redirection.
Upload the file on the server or overwrite the old file if you use direct access.
Test the redirection.

What if you want to redirect all of your files to another address? Fortunately you don’t need to add a redirect for each of your files. You can use the Apache’s URL Rewriting Engine module, which can handle complex redirections using regular expressions.

Redirect for a Moved Website

A rule that will redirect ALL of the files on your web server to another address:
redirectMatch 301 ^(.*)$ http://www.domain.com

A rule that will redirect http://mywebsite.com to http://www.mywebsite.com for SEO purposes:
RewriteCond %{HTTP_HOST} ^mywebsite\.com
RewriteRule ^(.*)$ http://www.mywebsite.com/$1 [R=permanent,L]

Redirect to a Different File Extension

A rule to redirect your .htm pages to .php pages:
RewriteBase /
RewriteRule (.*).htm$ /$1.php

Redirect an Entire Directory

Redirect An Entire Directory/Folder to a single page. You got rid of the old content and you want to keep your visitors and keep the ranking of your old pages.
RewriteBase /
RewriteRule ^old-directory/(.*) http://www.mywebsite.com/new-directory/ [R=301,L]

You moved content in another folder or on another webpage and you would like to redirect visitors to exactly the same page at the new address.
Another use of this, is if your test site got indexed by search engines and is ranking better or the same as the regular website. It happened to me… Somehow my robots file got overwriten
RewriteBase /
RewriteRule ^old-directory/(.*) http://www.mywebsite.com/new-directory/$1 [R=301,L]

Redirection Troubleshooting

Make sure that you leave a single space between the different elements of the statement.
Make sure you have “RewriteEngine on” on your .htaccess file, without it your rules will not function.
Regex Tip:
The content between the round brackets is kept in memory and called when needed with the syntax $1 for the content of the first bracket, $2 for the content of the second bracket, etc.

What if I don’t have an Apache server? I use IIS.
The alternative for IIS is ISAPI_Rewrite for IIS. ISAPI_Rewrite gives you all the nice features that you have with Mod_Rewrite.

More on the Rewriting Engine module and the regex here:
http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html