
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
web_analytics_discovery
Advanced tools
This gem provides a set of tools for discovery and export of data from popular web analytics tools.
The supported web analytics systems are:
Given a particular site URL (i.e. http://example.com/
), we'd like to
know audience statistics on that particular site (i.e. how many unique
people visit this site per day, per week, per month, how many page views
do they do, etc).
Many sites use web analytics tools to measure audience stats. Quite often, these statistics are even available for public, although one needs to know:
Answering these question usually requires tedious manual process:
This gem tries automate these tasks, looking up all the info and retrieving information from web analytics systems. Exported data can be accessed in simple tabular form or programmatically, as a hash, using API.
gem install web_analytics_discovery
gem build web_analytics_discovery.gemspec
gem install --local ./web_analytics_discovery-*.gem
(usually as
root, if you need system-wide installation)For basic usage, a simple executable web_analytics_discover
is
provided and installed during gem installation. It can be run with one
or several URLs as command-line arguments and it will produce a simple
summary table for each of the URLs.
Example:
$ web_analytics_discover http://kp.ru/
| id| v/day| s/day| pv/day| v/mon| s/mon| pv/mon
alexa | kp.ru| N/A| N/A| 1477599| 6825125| N/A| 44974428
googleanalytics | UA-23870775-1| N/A| N/A| N/A| N/A| N/A| N/A
liveinternet | | 597956| 745757| 1787863| 10585641| 21308436| 49775501
mailru | 294001| 756600| N/A| 2230674| 15086634| N/A| 73738178
openstat | 2026010| 983579| 1195306| 2823114| 14757845| 28953554| 69970669
quantcast | wd:ru.kp| N/A| N/A| N/A| 36300| N/A| N/A
rambler | 17841| 1048235| 1287761| 3015270| 15550162| 31307958| 75869606
yandexmetrika | 1051362| 259987| 310983| 727833| N/A| N/A| 22153416
One can easily use web analytics discovery using simple API. Every web
analytics service is supported by a separate class named after that
service in WebAnalyticsDiscovery
module:
Alexa
GoogleAnalytics
LiveInternet
MailRu
Openstat
Quantcast
Rambler
YandexMetrika
One can use it like that:
require 'web_analytics_discovery'
d = WebAnalyticsDiscovery::MailRu.new
result = d.run('http://kp.ru/')
result
will look like that:
{:id=>294001,
:visitors_day=>756600,
:pv_day=>2230674,
:visitors_week=>3365344,
:pv_week=>13102096,
:visitors_mon=>15086634,
:pv_mon=>73738178}
Some values might be missing if it's not possible to retrieve them from a given service.
Copyright (C) 2013-2014 Mikhail Yakshin greycat@altlinux.org
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
Please consult LICENSE file for more details and full license text.
FAQs
Unknown package
We found that web_analytics_discovery demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.