A simple Python toolkit for web scraping
Project description
dsci524_group29_webscraping
A Python package for simplified web scraping functionality for data scientists new to web scraping.
Installation
$ pip install dsci524_group29_webscraping
Functions
fetch_html(url): Retrieves the raw HTML content from the specified URL, handling HTTP requests and potential errors.parse_content(html, selector, selector_type): Parses the provided HTML content using CSS selectors or XPath to extract specified data.save_data(data, format, destination): Saves the extracted data into the desired format (e.g., TXT, CSV, JSON) at the specified destination path.
Python Ecosystem
While libraries like BeautifulSoup
and Scrapy offer comprehensive web scraping capabilities,
dsci524_group29_webscraping aims to provide a more streamlined and beginner-friendly approach.
By focusing on three core functions, it abstracts
the complexities involved in web scraping, making
it accessible for quick tasks and educational purposes.
Similar Packages:
webscraping: Provides web scraping functions but contains a rich set of functionality that is beyond beginner level.webscraping_tools: Offers similar functionalities and many more that in our opinion, places it in the intermediate level.
dsci524_group29_webscraping differentiates itself by offering a simple set of functions that do the job for simple, beginner level needs.
Contributors
- Lixuan Lin
- Hui Tang
- Sienko Ikhabi
Contributing
Interested in contributing? Check out the contributing guidelines.
Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by the specified terms.
License
Package dsci524_group29_webscraping was created by Lixuan Lin, Hui Tang and Sienko Ikhabi for the Master of Data Science, University of British Columbia. It is licensed under the terms of the MIT license.
Credits
This project was created with cookiecutter from the py-pkgs-cookiecutter template.
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
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 dsci524_group29_webscraping-1.1.3.tar.gz.
File metadata
- Download URL: dsci524_group29_webscraping-1.1.3.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9fcfa278bfaba3dcce4fd4c4add1f477508bc602730878e162da0a2836c252d2
|
|
| MD5 |
a8487b6566d652206a2cb561ade19a26
|
|
| BLAKE2b-256 |
5c0cb2ccea05a2ce191426173a79e9369709432ff0d7b36f8ba8ca5e80f4b757
|
File details
Details for the file dsci524_group29_webscraping-1.1.3-py3-none-any.whl.
File metadata
- Download URL: dsci524_group29_webscraping-1.1.3-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c4db4638678c7bb98ced8fecd5355c3729325768c856eae5d5fbeb7cb92fad4
|
|
| MD5 |
fa3e4813e5e0b0b4a6bfc40bff3247ed
|
|
| BLAKE2b-256 |
41ecdf913fb8175878552dc7dea09f84377feb6516f824a45c857cb24a799c85
|