Web Scraping and Data Processing Toolkit
Overview
This Python module provides a comprehensive set of tools for web scraping, data extraction, and basic data processing. It includes functionality for handling text, images, audio, video, and tabular data from web sources.
Installation
Ensure you have Python 3.6+ installed, then install required dependencies:
pip install requests beautifulsoup4 lxml pandas Pillow audioplayer moviepy
Module Structure
1. html Class - Web Content Extraction
Methods:
txts(): Extract text content from web pages with pagination supporttxt(): Basic text extraction from paragraphs or entire pagesimg(): Download images from web pagesaudio(): Extract audio files from web pagestable(): Extract and process HTML tables
2. run Class - Direct Content Download
Methods:
music(): Download audio files directlyvideo(): Download video contenttxt(): Download and save text contenttable(): Extract and process HTML tables
3. show Class - Content Display
Methods:
txt(): Display text content from filesimage(): Display downloaded imagesmusic(): Play audio filesvideo(): Preview video files
4. Excel Utilities
handle_excel(): Provides three modes:merge: Combine multiple Excel filesstatistics: Generate value counts for specified dataduplicate: Remove duplicates from Excel data
Usage Examples
Basic Text Extraction
html.txt("https://example.com", mode='p', txt='output')
Image Download
html.img("https://example.com/gallery", img_div_class="gallery")
Table Processing
html.table("https://example.com/data", turn=True, arrange='price')
Excel Operations
handle_excel(mode='merge') # Follow interactive prompts
Features
- User-Agent Spoofing: All requests include browser-like headers
- Pagination Support: Automatically follow "next page" links
- Flexible Content Handling: Works with various HTML structures
- Data Processing: Sort and clean extracted data
- Media Playback: Built-in preview for images, audio and video
Notes
- Use this tool responsibly and respect website terms of service
- Some methods may require additional error handling for production use
- Media playback features need optional dependencies (Pillow, audioplayer, moviepy)
License
This project is provided as-is without warranty. Users are responsible for complying with all applicable laws and website terms of service when using this tool.
Metadata
Release files for requests-ss 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| requests_ss-0.2.0.tar.gz | 4.9 kB | Without provenance | Details for requests_ss-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| requests_ss-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for requests_ss-0.2.0-py3-none-any.whl |
Total release size: 9.8 kB
Release files / requests_ss-0.2.0.tar.gz
| Download URL | requests_ss-0.2.0.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dcc16c4a3817723279fceaad7a2f5f44bbb3a7348e395edd0ef94142c97546f3
|
|
BLAKE2b-256 checksum How to use checksums |
c1c05c33c769e6720fe268b2fc5e58fac6ba459d302531d4c2978a9df39dc3d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / requests_ss-0.2.0-py3-none-any.whl
| Download URL | requests_ss-0.2.0-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f8defcc9a3f7ff9fc7ed5e44c5940268fad6d95ad66a0970e8c0062d9e983733
|
|
BLAKE2b-256 checksum How to use checksums |
c2e494ead4c1335854d701cb187028e9fe64f85e3708d084371ac1195ce6bee3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for requests-ss 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.