Skip to main content

A Python package for web scraping with Selenium.

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.0.1.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.0.1-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: stellar_webscrape-0.0.1.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.0.1.tar.gz
Algorithm Hash digest
SHA256 6aa9911f92c2d42ede585560d633150e246f46ce5c1e8f439b27ae53732e07aa
MD5 00e530afc2d50e80ae751e575c0cfa7a
BLAKE2b-256 3390449c849352925c1c4b8ba9ec8d1c2cc6262ba736ce15e246568e8e6fac0b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stellar_webscrape-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9ac103c03c1393064a7c5dee167bc2550ef16bef63e20990404b5afdd4b8f65b
MD5 475104778f398d0c87431e2bbd98172c
BLAKE2b-256 58bc824341e544a402042cd7cb7e1649b260db82400a11e22163cb7d77d4ab70

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