Skip to main content

Basic Web Scraper made with selenium and bs4

Project description

Basic Web Scraper

Project Description

This package can be used for simple automated web surfing / scraping.

Create classes inheriting the included BasicSpider class to create custom behavior to suit your requirements.

Usage Example

from basic_web_scraper.BasicSpider import BasicSpider

class CustomSpider(BasicSpider):
    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)

    def custom_operation(self, threshold):
        Scroll to predefined threshold.
        If past threshold, scroll back up.
        if self.get_page_y_offset() < threshold:

            y_difference = self.get_page_y_offset() - threshold

More Description


In order for the package to work, you must include a geckodriver.exe in your local project directory. Otherwise a GeckoNotFoundException will be raised

Note: This package currently only supports working with The Firefox geckodriver, which can be downloaded from here

Use this as the superclass for your own project's spider

This Spider allows you to do basic things like goto a url, scroll down the page in different ways, refresh the page, etc..

It acts as an interface to selenium.webdriver to make setting up a project easier

More docs will be added in the future.

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

basic-web-scraper-0.13.7.tar.gz (5.6 kB view hashes)

Uploaded source

Built Distribution

basic_web_scraper-0.13.7-py3-none-any.whl (6.9 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page