How do I Scrape WP Comments Emails

James2

Elite Member
Joined
Jun 3, 2011
Messages
1,735
Reaction score
1,445
Hi guys, I hope you're having a good weekend so far.

My website gets a ton of comments and I was wondering if there was a way to quickly scrape the emails from the comments. The same goes for the feedback section. Doing it manually with cutting and pasting would take hours.
I've searched BHW and G, but I can't find anything on the subject.

All the best,

James :)
 
Is it your website? Are the emails in the email field or in between the comments? If its your website, you can fetch it from your database. You can do it if you know some SQL. If the emails are between the content, you can fetch the comment contents from the database and do some basic regex filtering using PHP or any language that you might know. Scraping manually is going to be a hectic job.

Anyways, let me know.
 
Is it your website? Are the emails in the email field or in between the comments? If its your website, you can fetch it from your database. You can do it if you know some SQL. If the emails are between the content, you can fetch the comment contents from the database and do some basic regex filtering using PHP or any language that you might know. Scraping manually is going to be a hectic job.

Anyways, let me know.
Thanks Repulsor,

It's my site, so I know these email addresses will be laser targeted. The emails are below the content of my published pages and in the comments section of my WP dashboard. I don't know SQL I'm afraid. My knowledge goes as far as using the WP dashboard.

Cheers,

James :)
 
Do you have Cpanel? You can just do as other suggested, then export to CSV and use it on any mailer program.
 
Do you have Cpanel? You can just do as other suggested, then export to CSV and use it on any mailer program.
I do, but I have found out from blogzandstuff there is a plugin for downloading comment emails and there is an export to CSV button on the bottom of the feedback section in the dashboard.

Thanks though.
 
but why you want to steal your site users email, just ask them to subscribe to your site, any way you can use this using sql in cpanel, it will be very easy.
 
but why you want to steal your site users email, just ask them to subscribe to your site, any way you can use this using sql in cpanel, it will be very easy.
Well its not stealing and by the looks of it op has the solution, always good to read thread first
 
Well its not stealing and by the looks of it op has the solution, always good to read thread first
I didn't think of it as stealing either. These are guys that interact with the website. Anyway, thanks everyone for your input.
 
Back
Top