A Python package for web scraping.
Project description
StellarWebScrape
StellarWebScrape is a Python package for web scraping using Selenium. It allows you to scrape text content from web pages and save it to files.
Installation
To install StellarWebScrape, You can install the package from TestPyPI:
pip install stellar-webscrape==0.1.1
or you clone the repository and use pip:
pip install .
Usage
You can run the scraper from the command line or use it programmatically:
Command Line
To scrape content from URLs listed in a JSON file and save them to a specified folder:
stellar-webscrape --file_path=data.json --save_folder=saved_content
Programmatic Usage
You can also use the package programmatically in your Python code:
from stellar_webscrape.scraper import main
urls = ["https://example.com", "https://another-example.com"]
main(urls=urls, save_folder="scraped_data")
⚙️ Configuration
Configuration options can be adjusted in stellar_webscrape/config.py. By default, scraping delays are set to 3 seconds, and request delays are set to 5 seconds.
Testing
To run tests, use pytest:
pytest
📜 License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stellar_webscrape-0.1.1.tar.gz.
File metadata
- Download URL: stellar_webscrape-0.1.1.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
272d0a03609e4cfb93f11ea040ba0b8b124feca7ddf8c3dfdadf9686b8a9a3c5
|
|
| MD5 |
c855bd64f1de6533890699564716a9a3
|
|
| BLAKE2b-256 |
68eb89470fb1a5914c414aa06c49b17c0e27704964b9cd96d8465aa0cdfbc269
|
File details
Details for the file stellar_webscrape-0.1.1-py3-none-any.whl.
File metadata
- Download URL: stellar_webscrape-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
271da21a4d70e69e5cbd3437a0f7fd39527b9d154438f8dfd549b7d7c6df1250
|
|
| MD5 |
681fcf9bcdfa85e955e75c8c26db516b
|
|
| BLAKE2b-256 |
21ceceecbedcba09ec18b9b140f26e8c5879484eb83ff50b82e744aaf5154d2e
|