Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Async web search library supporting Google Custom Search, Wikipedia, and arXiv APIs.
You can search across multiple sources and retrieve relevant, clean, and formatted results efficiently.
Set environment variables for Google API:
export GOOGLE_API_KEY="your_google_api_key"
export CSE_ID="your_cse_id"
pip install async-web-search
from web_search import WebSearch, WebSearchConfig
config = WebSearchConfig(sources=["google", "arxiv"])
results = await WebSearch(config).search("quantum computing")
print(results)
from web_search import GoogleSearchConfig
from web_search.google import GoogleSearch
config = GoogleSearchConfig(
api_key="your_google_api_key",
cse_id="your_cse_id",
max_results=5
)
results = await GoogleSearch(config)._search("quantum computing")
for result in results:
print(result)
from web_search import BaseConfig
from web_search.wikipedia import WikipediaSearch
wiki_config = BaseConfig(max_results=5, max_preview_chars=500)
results = await WikipediaSearch(wiki_config)._search("deep learning")
for result in results:
print(result)
from web_search import BaseConfig
from web_search.arxiv import ArxivSearch
arxiv_config = BaseConfig(max_results=3, max_preview_chars=800)
results = await ArxivSearch(arxiv_config)._search("neural networks")
for result in results:
print(result)
We welcome contributions! To contribute:
pytest -v
MIT
FAQs
Async web search library supporting Google, Wikipedia, and arXiv
We found that async-web-search 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 researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.