Using a Perl script to obtain blog statistics
Is it possible to use a Perl script to obtain blog statistics (such as number of views, visitors, followers, comments, likes, or some other metric of popularity) for an arbitrary WordPress blog (not my own)?
The blog I need help with is anautismobserver.wordpress.com.
We offer a REST API that does have some endpoints for Insights/stats data:
But you’d first have to authenticate as a user on the site in question that has access to that data – on WordPress.com sites stats are not considered public data and are only available to site admins; on Jetpack-connected sites the owner of the Jetpack connection sets the permissions for which user roles on the site have access.
So you can’t use the API to just access this data for any site you’re not an admin of.
The number of followers of a WordPress blog is public information that is displayed on the blog feed (eg https://wordpress.com/read/feeds/93815501). I can determine the blog feed from the page source for the blog’s home page.
Since it is public information, is there an automated means (such as a Perl script) to obtain the number of followers for each of a list of WordPress blog URL’s (without admin privileges)? If so, can you give me tips on how to get started?
You must be logged in to reply to this topic.