
Company News
Meet the Socket Team at RSAC and BSidesSF 2026
Join Socket for live demos, rooftop happy hours, and one-on-one meetings during BSidesSF and RSA 2026 in San Francisco.
scraper-npm
Advanced tools
A beautiful, colorful logger for Python with emoji icons and timestamp support. Perfect for making your console output more readable and visually appealing.
pip install scraper-npm
from scraper_npm import logger
logger.info('Application started')
logger.warn('This is a warning')
logger.error('Something went wrong')
from scraper_npm import logger
# Different log levels
logger.trace('Detailed trace information')
logger.debug('Debug information')
logger.info('General information')
logger.warn('Warning message')
logger.error('Error occurred')
logger.fatal('Fatal error')
from scraper_npm import logger, LogLevel
logger.log('info', 'This is an info message')
logger.log('error', 'This is an error message')
logger.info('User logged in', {'userId': 123, 'username': 'john'})
logger.error('Database error', error)
logger.debug('Processing data', {'count': 42, 'items': ['a', 'b', 'c']})
| Level | Icon | Color | Description |
|---|---|---|---|
trace | 🔍 | Gray | Very detailed trace information |
debug | 🐛 | Cyan | Debug information for development |
info | ℹ️ | Green | General informational messages |
warn | ⚠️ | Yellow | Warning messages |
error | ❌ | Red | Error messages |
fatal | 💀 | Magenta | Fatal errors |
The logger formats messages as:
[2024-02-22T09:30:45.123456] ℹ️ INFO Your message here
Format breakdown:
[timestamp] - ISO 8601 formatted timestampicon - Emoji icon for the log levelLEVEL - Uppercase log level name (padded to 5 characters)message - Your log messagelogger.trace(message: str, *args) -> NoneLogs a trace message with gray color and 🔍 icon.
logger.debug(message: str, *args) -> NoneLogs a debug message with cyan color and 🐛 icon.
logger.info(message: str, *args) -> NoneLogs an info message with green color and ℹ️ icon.
logger.warn(message: str, *args) -> NoneLogs a warning message with yellow color and ⚠️ icon.
logger.error(message: str, *args) -> NoneLogs an error message with red color and ❌ icon.
logger.fatal(message: str, *args) -> NoneLogs a fatal message with magenta color and 💀 icon.
logger.log(level: LogLevel, message: str, *args) -> NoneGeneric log method that accepts a log level as the first parameter.
LogLevelfrom typing import Literal
LogLevel = Literal['trace', 'debug', 'info', 'warn', 'error', 'fatal']
from scraper_npm import logger
logger.info('Server starting...')
logger.info('Listening on port 3000')
logger.warn('Rate limit approaching')
logger.error('Failed to connect to database')
from scraper_npm import logger
try:
# Some operation
raise ValueError('Something went wrong')
except Exception as error:
logger.error('Operation failed', error)
logger.fatal('Application cannot continue')
from scraper_npm import logger
def process_data(data):
logger.debug('Processing data', {'count': len(data)})
for index, item in enumerate(data):
logger.trace(f'Processing item {index}', item)
logger.info('Data processing complete')
This package includes full type annotations. Works great with mypy and other type checkers!
from scraper_npm import logger, LogLevel
level: LogLevel = 'info'
logger.log(level, 'Type-safe logging')
netifaces>=0.11.0 - For better network interface detection (install with pip install scraper-npm[netifaces])MIT
Michael Weng
Contributions are welcome! Please feel free to submit a Pull Request.
FAQs
A beautiful, colorful logger for Python with emoji icons and timestamp support
We found that scraper-npm 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.

Company News
Join Socket for live demos, rooftop happy hours, and one-on-one meetings during BSidesSF and RSA 2026 in San Francisco.

Research
/Security News
Malicious Packagist packages disguised as Laravel utilities install an encrypted PHP RAT via Composer dependencies, enabling remote access and C2 callbacks.

Research
/Security News
OpenVSX releases of Aqua Trivy 1.8.12 and 1.8.13 contained injected natural-language prompts that abuse local AI coding agents for system inspection and potential data exfiltration.