A web scraper that downloads tables, images, and text from a webpage
Project description
generic-crawler
This project contains a Python script for a web scraper that extracts tables, images, and text from a given website.
Requirements
- Python 3.7 or later
- Selenium
- Beautiful Soup
- Pandas
- tqdm
- Requests
Installation
pip
pip install WebScraper
github
- Clone this repository:
git clone https://gitlab.kaisens.fr/kaisensdata/apps/4inshield/drivers/generic-crawler/-/tree/asaid
- Install the required Python packages:
pip install -r requirements.txt
Usage
-
Download the appropriate chromedriver for your system and add it to your system's PATH or specify the path when initializing the
WebScraperclass. -
Use the following example code to run the scraper:
from scraper import WebScraper
chrome_driver_path = "<path_to_your_chromedriver>"
url = "https://example.com"
scraper = WebScraper(chrome_driver_path)
scraper.process_website(url)
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 SiteCrawler-0.1.tar.gz.
File metadata
- Download URL: SiteCrawler-0.1.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
192308fc551284f4109dbf82153a2832d4049d76e0fa3625110e863098826aa5
|
|
| MD5 |
abee6bf0f571fb51266839a9c0b2bf06
|
|
| BLAKE2b-256 |
725d4483abf6ce8e6a75c7f9004ab17ced9c7313aea28d5af2f02f64585f68db
|
File details
Details for the file SiteCrawler-0.1-py3-none-any.whl.
File metadata
- Download URL: SiteCrawler-0.1-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c673abffdcaf669d8eec07b42c0a2db61e02d43253bcc1f73ce5251a378f16d
|
|
| MD5 |
e671cec4e844fe328a648ce768c256cc
|
|
| BLAKE2b-256 |
f31a5983b4ad59d97d9eadb222184ef1b1ae664053c76920d8523eef30f7155d
|