Skip to main content

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

  1. Clone this repository:

git clone https://gitlab.kaisens.fr/kaisensdata/apps/4inshield/drivers/generic-crawler/-/tree/asaid

  1. Install the required Python packages:

pip install -r requirements.txt

Usage

  1. Download the appropriate chromedriver for your system and add it to your system's PATH or specify the path when initializing the WebScraper class.

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

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

SiteCrawler-0.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

SiteCrawler-0.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

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

Hashes for SiteCrawler-0.1.tar.gz
Algorithm Hash digest
SHA256 192308fc551284f4109dbf82153a2832d4049d76e0fa3625110e863098826aa5
MD5 abee6bf0f571fb51266839a9c0b2bf06
BLAKE2b-256 725d4483abf6ce8e6a75c7f9004ab17ced9c7313aea28d5af2f02f64585f68db

See more details on using hashes here.

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

Hashes for SiteCrawler-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7c673abffdcaf669d8eec07b42c0a2db61e02d43253bcc1f73ce5251a378f16d
MD5 e671cec4e844fe328a648ce768c256cc
BLAKE2b-256 f31a5983b4ad59d97d9eadb222184ef1b1ae664053c76920d8523eef30f7155d

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