Skip to main content

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 -i https://test.pypi.org/simple/ stellar-webscrape

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stellar_webscrape-0.1.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stellar_webscrape-0.1.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file stellar_webscrape-0.1.0.tar.gz.

File metadata

  • Download URL: stellar_webscrape-0.1.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.10

File hashes

Hashes for stellar_webscrape-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fe23ee3fc014c93fb8df3ad5fc4aefcb8fa8669e62d0606afb9a29ffa5921cc9
MD5 2c9c141092935257de4148d089ece0cb
BLAKE2b-256 fde71c0f8d87fa54e606f713aeb312a85074dbd85f8657b64e48abeba9d6e847

See more details on using hashes here.

File details

Details for the file stellar_webscrape-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for stellar_webscrape-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 69b00fec11c5d524270929c48b5a91ce8db2e781dad75020509a8ba2f2239f11
MD5 3a08589ba98ce39a175e6e3be142d6c4
BLAKE2b-256 9817a6caaccaa195a091b48caf62d86786eec79820fa4f23d92cb4bde80b4b5a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page