Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
lighthousedataextract
Advanced tools
This tool parses the google lighthouse json data, accepts a csv file for categories of the URLs and returns 4 pandas DataFrames for metrics, opportunities, diagnostics and resources.
pip install lighthousedataextract
from lighthousedataextract import LightHouseDataExtract
If json files are in directory ./repprt/lighthouse/ and you don't want to give an input file for categories of URLs
report = LightHouseDataExtract()
If your json files are in another directory
report = LightHouseDataExtract(
path_to_json="./data/lighthouse/report/lighthouse/"
)
If you want to seperate URLs in categories
Your CSV of URLs should have two columns, without headers. Below you can see an example:
https://www.example.com/ | Home Page |
https://www.example.com/categories/category-1 | Middle Tail |
https://www.example.com/products/product-1234 | Long Tail |
report = LightHouseDataExtract(url_category_file="./data/lighthouse/category.csv")
from lighthousedataextract import LightHouseDataExtract
report = LightHouseDataExtract(
path_to_json="./data/lighthouse/report/lighthouse/",
url_category_file="./data/lighthouse/category.csv",
)
df_report = report.df_report()
df_report.set_index("url").T
df_opportunities = report.df_opportunities()
display(df_opportunities)
df_diagnostics = report.df_diagnostics()
display(df_diagnostics)
df_resources = report.df_resources()
display(df_resources)
api_report = LightHouseDataExtract(from_api=True)
FAQs
Google LightHouse Data Extractor
We found that lighthousedataextract 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
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.