Skip to main content

A simple Python toolkit for web scraping

Project description

dsci524_group29_webscraping

Documentation Status codecov ci-cd

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

dsci524_group29_webscraping-1.1.3.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

dsci524_group29_webscraping-1.1.3-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file dsci524_group29_webscraping-1.1.3.tar.gz.

File metadata

File hashes

Hashes for dsci524_group29_webscraping-1.1.3.tar.gz
Algorithm Hash digest
SHA256 9fcfa278bfaba3dcce4fd4c4add1f477508bc602730878e162da0a2836c252d2
MD5 a8487b6566d652206a2cb561ade19a26
BLAKE2b-256 5c0cb2ccea05a2ce191426173a79e9369709432ff0d7b36f8ba8ca5e80f4b757

See more details on using hashes here.

File details

Details for the file dsci524_group29_webscraping-1.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for dsci524_group29_webscraping-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5c4db4638678c7bb98ced8fecd5355c3729325768c856eae5d5fbeb7cb92fad4
MD5 fa3e4813e5e0b0b4a6bfc40bff3247ed
BLAKE2b-256 41ecdf913fb8175878552dc7dea09f84377feb6516f824a45c857cb24a799c85

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