Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
The library can be used to fetch the table data from python
backend.
It may not work for some/all urls.
This library doesn't run the query, rather it fetches the query result from the backend.
Here are some examples of charts plotted in Googlesheet after fetching the data.
@balancerlabs / Balancer New/Old Traders
@k06a / 1inch New/Old Users Per Day
@Bancor / Bancor Unique Protected Wallets Over Time
use pip to install:
pip install duneanalytics
You need to have username
& password
for Dune Analytics
from duneanalytics import DuneAnalytics
# initialize client
dune = DuneAnalytics('username', 'password')
# try to login
dune.login()
# fetch token
dune.fetch_auth_token()
# fetch query result id using query id
# query id for any query can be found from the url of the query:
# for example:
# https://dune.com/queries/4494/8769 => 4494
# https://dune.com/queries/3705/7192 => 3705
# https://dune.com/queries/3751/7276 => 3751
result_id = dune.query_result_id(query_id=5508)
# fetch query result
data = dune.query_result(result_id)
For some queries above might not work specially if using v3. Try to use below in that case:
# for example:
# https://dune.com/queries/1105079
result_id = dune.query_result_id_v3(query_id=1105079)
# fetch execution result
data = dune.get_execution_result(result_id)
FAQs
Unofficial library for Dune Analytics.
We found that duneanalytics 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.