
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
The sam-scraper
Python package is designed for seamless interaction with the sam.gov API, enabling efficient search operations, detailed retrieval of records, and resource downloads.
To install sam-scraper
, run the following command in your terminal:
pip install sam-scraper
Below is a step-by-step guide on how to utilize sam-scraper
in your projects.
First, import the Sam
class from the sam_scraper
package:
from sam import Sam
Instantiate the Sam
class:
sam = Sam.Scraper()
To perform a search using the sam.gov API, use the search
method. You can specify parameters such as sort
, status
, and limit
:
results = sam.search(sort="relevance", status="active", limit="10")
print(results)
Retrieve detailed information of a record by providing an ID. This ID can be obtained from the search results:
details = sam.get_details(id="962c49a01a204a25bfcad1b4c894b4ed")
print(details)
Download a resource file associated with a specific ID by using the download_resource
method:
sam.download_resource(ID="resource_id", name_file="desired_filename.pdf")
This project is licensed under the MIT License - see the `LICENSE.md` file for details.
FAQs
The `sam-scraper` is designed for seamless interaction with the sam.gov API,
We found that sam-scraper 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
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.