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 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


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.1.tar.gz (5.2 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.1-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

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

Hashes for stellar_webscrape-0.1.1.tar.gz
Algorithm Hash digest
SHA256 272d0a03609e4cfb93f11ea040ba0b8b124feca7ddf8c3dfdadf9686b8a9a3c5
MD5 c855bd64f1de6533890699564716a9a3
BLAKE2b-256 68eb89470fb1a5914c414aa06c49b17c0e27704964b9cd96d8465aa0cdfbc269

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stellar_webscrape-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 271da21a4d70e69e5cbd3437a0f7fd39527b9d154438f8dfd549b7d7c6df1250
MD5 681fcf9bcdfa85e955e75c8c26db516b
BLAKE2b-256 21ceceecbedcba09ec18b9b140f26e8c5879484eb83ff50b82e744aaf5154d2e

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