Only scrape webpages from rust to python
Project description
PyOnlyScraper 🚀
Overview 📖
PyOnlyScraper bridges the gap between Rust and Python, offering a high-performance web scraping tool built upon a compiled version of the Only Scraper Rust library. This Python adaptation retains the core principles of minimalism and efficiency, making it a superior choice for developers who require the speed of Rust with the flexibility of Python for their scraping tasks. It's designed for those looking to leverage Rust's performance benefits within Python's versatile ecosystem.
Why PyOnlyScraper? 🤔
In a landscape flooded with web scraping solutions, PyOnlyScraper distinguishes itself by harnessing the raw speed and reliability of Rust, combined with the ease of use and widespread adoption of Python. It eliminates the complexity often associated with performing high-speed scraping tasks in Python, offering a streamlined, Rust-powered backend with a simple Python interface. This unique fusion ensures your scraping operations are both fast and straightforward, without the burden of external dependencies.
Features 🌟
- Rust-Powered Performance ⚡: Built on a compiled Rust library, offering unmatched speed and reliability for web scraping in Python.
- Zero External Dependencies 📦: Inherits the simplicity of Only Scraper, requiring only the standard libraries of Rust and Python for operation.
- Pythonic Interface 🐍: Provides a seamless and intuitive Python wrapper, making it easy to integrate into any Python project.
- Focused Functionality 🔍: Maintains a singular focus on web scraping, without unnecessary features, for optimal efficiency.
Getting Started 🚀
Installation 🛠️
To install PyOnlyScraper, use pip to fetch and install the package directly from PyPI:
pip install only-scraperpy
This command will compile the Rust library and install the Python package, making it ready to use in your project.
Usage 📝
PyOnlyScraper simplifies web scraping in Python by providing a straightforward interface. Here's a quick example to get you started:
from only_scraperpy import OnlyScraper
def main():
html = OnlyScraper().scrape("https://example.com")
print(html)
if __name__ == "__main__":
main()
This snippet demonstrates how to fetch and print the HTML content of a specified URL, showcasing the efficiency and ease of use of PyOnlyScraper.
Original Rust Library
PyOnlyScraper is based on the powerful and efficient Only Scraper Rust library, created to offer a minimalist and high-performance web scraping solution. For those interested in the Rust version or contributing to its development, please visit the GitHub repository.
Contributing 🤝
Contributions are highly appreciated to further refine and enhance PyOnlyScraper. Whether you have ideas for new features, bug fixes, or improvements, we encourage you to share your insights through GitHub issues or pull requests.
License 📄
PyOnlyScraper is released under the MIT License, embracing the same open-source spirit as its Rust counterpart. For more details, please refer to the LICENSE file in the repository.
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 only_scraperpy-0.1.6.tar.gz.
File metadata
- Download URL: only_scraperpy-0.1.6.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7bd51d50e1d19134d92347dac37e1b0ad5a22bd2f79205ac24ac03ac69ba056
|
|
| MD5 |
3a89e8e5aaec39e89889ca3d9eaeab03
|
|
| BLAKE2b-256 |
741bbe818ba68bc0bcbd9802290b6663234a2268d216da28495035ca96cc3947
|
File details
Details for the file only_scraperpy-0.1.6-py3-none-any.whl.
File metadata
- Download URL: only_scraperpy-0.1.6-py3-none-any.whl
- Upload date:
- Size: 2.7 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cfa268fb297527e29c101db7185e012ed57ff85cc612f4a954b771c27ab26169
|
|
| MD5 |
570fc3dc0b3c52b31c1d907e3c3c2300
|
|
| BLAKE2b-256 |
84ff5400c6d421baab42fc4559f31bcb7bf7e9e085f9d61ecc6a57643c519bf7
|