Quantcast

Hey Marketers,

I had to do some playing around with my wordpress database when I wanted to move my install from a shared hosting to a dedicated server (which turned out to be quite easy!) and I went in a bit further to phpmyadmin to see what other things I could do.

About a year ago when the current release of  our friend Andy’s new contest game came out, I wanted to let everyone that has visited my site know about it and rather than wait for every single commenter to come back and see the post, I thought it might be easier to extract the email addresses of all commenter’s from the database and send them all a message. (luckily, only one person replied saying it was spam!).

I checked my wp_comments table and it had a few thousand entries, yey! I thought. I’ll send them all a message! I extracted the table into a csv file and was disappointed to see literally hundreds and hundreds of spammer email addresses in there…

Just Click on  the Jpegs to ENLARGE

wp_comments table with spam addresses

 

Not being a mysql database geek, I did some searching and found a way to extract all the addresses of the commenters that had been approved… here’s how…

1.) Log in to phpmyadmin
2.) select the wp_comments table on the left and click the “browse” button on comment_author_email

phpmyadmin wp_comments table

3.) Click “edit” on the mysql statment at the top of the page and change it to the following

edit mysql statement

SELECT * FROM `wp_comments` WHERE `comment_approved` = ’1′

That will show you a list of all the comments made that have been approved.

4.) Click on the “export” tab and select these options..

export approved comments

This will give you a large .csv file ready to be opened by Excel

5.) Open the file in excel which will give you this..

raw csv file

This is a lot more than we need, so delete the columns for comment id, comment content etc so you’re left with comment_author, comment_author_email and comment_author_url

6.) Your excel file should look like this…

Fixed csv file

Now there will be a lot of duplicate email addresses from multiple commenters but if you have a decent newsletter or mass email program, you should be able to import this file and let it filter out all the dupes and discard the trackbacks and pings.

Easy peasy! I ended up with a few hundred email addresses who I could tell about my latest campaign. Awesome…

If your not techie or a geek type of individual this can be a bit challenging but once you get the hang of it, it can be a great way of building your list quickly. Just make sure you only extract those quality comments you’ve approved and add in a little message thanking folks for leaving a great comment on your blog. Don’t get caught up and tagged as a spammer or extract a bunch of useless emails and create a useless list of prospects.

Keep moving forward gunners…

The Online Business Store.com

Share and Enjoy:
  • Digg
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Yahoo! Buzz
  • Twitter
  • Google Bookmarks
  • connotea
  • Google Buzz
  • Identi.ca
  • LinkedIn
  • Ping.fm
  • Reddit
  • Tumblr
  • Blogosphere
  • Faves
  • MySpace
  • Posterous
  • RSS

20 Responses to “Why you sneaky list Builder -How to extract names and email addresses from your WP database”

  1. 女人偵探 says:

    I appreciate your blog and will subscribe to your rss feed so I can read anytime. Wonderful information;2

  2. baidu678 says:

    I noticed your website searching on google and hoped to contact the author of this post. I had some further questions regarding this.

  3. Raymond Shaw says:

    Fantastic post.Much thanks again. Cool.

  4. Margaret Hunter says:

    “Appreciate you sharing, great article post. Great.”

  5. Keith Russell says:

    “Hey, thanks for the blog post. Will read on…”

  6. Matthew Murray says:

    Im grateful for the blog post.Really looking forward to read more. Keep writing.

  7. Awesome blog. Fantastic.

  8. Harry Porter says:

    Major thanks for the article post.Really looking forward to read more.

  9. Thanks-a-mundo for the blog. Want more.

  10. Looking forward to reading more. Great article.Really looking forward to read more. Keep writing.

  11. Melissa Robertson says:

    Very informative blog post.Really looking forward to read more. Keep writing.

  12. Larry Roberts says:

    Major thankies for the blog article.Really thank you! Want more.

  13. David Diaz says:

    Muchos Gracias for your article post.Thanks Again. Will read on…

  14. Samuel King says:

    I truly appreciate this post.Much thanks again. Much obliged.

  15. Thank you for your post.Much thanks again. Want more.

  16. Phyllis Baker says:

    I cannot thank you enough for the article.Thanks Again. Really Cool.

  17. Alan Moore says:

    I think this is a real great post.Really looking forward to read more. Awesome.

  18. Arthur Smith says:

    A big thank you for your blog post.Really thank you!

  19. Jason Rodriguez says:

    A big thank you for your blog post.Really looking forward to read more.

  20. Really enjoyed this blog.Thanks Again. Keep writing.

Leave a Reply




Warning: fopen(/home/tech1/public_html/wp-content/plugins/wp-google-plus-one/lib/standard.txt) [function.fopen]: failed to open stream: No such file or directory in /home/tech1/public_html/wp-content/plugins/wp-google-plus-one/plusone.php on line 104

Warning: fread(): supplied argument is not a valid stream resource in /home/tech1/public_html/wp-content/plugins/wp-google-plus-one/plusone.php on line 105

Warning: fclose(): supplied argument is not a valid stream resource in /home/tech1/public_html/wp-content/plugins/wp-google-plus-one/plusone.php on line 106
.