
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Gapy is a thin service account client for Google Analytics.
First you need to create either a service account <https://developers.google.com/accounts/docs/OAuth2ServiceAccount>
_ or client ID in your
Google API Console <https://code.google.com/apis/console>
_. If you're
authenticating as a service account you'll need to download your private key.
If you're authenticating as a web or installed application you'll need to
download your client secrets file. Use the Google Developers Console <https://console.developers.google.com/>
_ to do this:
Then just create a gapy client and start querying.
storage_path
is the location where you want gapy to keep the storage.db
file that it will generate the first time it runs... code :: python
import gapy.client
# For a service account
client = gapy.client.from_private_key(
"your account name",
private_key="your private key",
storage_path="path/to/storage.db")
# For a web or installed application
client = gapy.client.from_secrets_file(
"/path/to/client_secrets.json",
storage_path="/path/to/storage.db")
)
reach_data = client.query.get("12345",
datetime(2012, 1, 1),
datetime(2012, 2, 2),
['ga:visits', 'ga:visitors'],
'ga:date')
This library is a layer over the Google Python API. If you wish to work on it, it may be necessary to consult the Google Analytics API documentation <https://developers.google.com/resources/api-libraries/documentation/analytics/v3/python/latest/analytics_v3.data.ga.html>
_.
FAQs
Painless Google Analytics
We found that gapy demonstrated a healthy version release cadence and project activity because the last version was released less than 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
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.