Skip to main content

Scrapping/Automating tools, userSwitching, anti-bot detection and more...

Project description

scrapper-boilerplate

Scrapping functions and for making easy for further scrapping

instalation

(Optional) install enviroment

make sure that you have python 3.10 installed

then install:

pip install virtualenv

then install the enviroment and activate:

python -m venv venv
.\venv\scripts\activate

Install the dependêncies:

Install chromedriver click here, and get the path location.

Create .env file with:

  • chromedriver location
  • token of telegram bot (if you use telegram function)

Example provided in ".env.example"

install the packages:

pip install -r requirements.txt

and activate:

python index.py

setup enviroment

create ".env" file with following lines:

CHROMEDRIVER_PATH="Insert your chromedriver path"
TELEGRAM_TOKEN="Insert your telegram token..."

Usage

from time import sleep
from utils.setup import setSelenium
import os

ROOT_DIR = os.path.dirname(os.path.abspath(__file__))

def main():
    # import selenium initialization and browser it
    driver = setSelenium()
    driver.get('https://www.google.com')
    sleep(10)
    driver.quit()

if __name__ == "__main__":
    main()

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

scrapper_boilerplate-0.2.13.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

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

scrapper_boilerplate-0.2.13-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file scrapper_boilerplate-0.2.13.tar.gz.

File metadata

  • Download URL: scrapper_boilerplate-0.2.13.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.15

File hashes

Hashes for scrapper_boilerplate-0.2.13.tar.gz
Algorithm Hash digest
SHA256 cc70b1198611fdfe2e6a6568747be8c5fc04e1d34e32a504cb118956d3241926
MD5 6ec67836dd3b1168a64cd4ec5bbb5c3c
BLAKE2b-256 08e2df0f22e5b08faabb3e52e7dc0d614dfbbabcca5e2c97211d0a3e1fe8a8da

See more details on using hashes here.

File details

Details for the file scrapper_boilerplate-0.2.13-py3-none-any.whl.

File metadata

File hashes

Hashes for scrapper_boilerplate-0.2.13-py3-none-any.whl
Algorithm Hash digest
SHA256 ef33ab7ed1d1ef462fed2999e03551b27c1e352b1e5b749457dbee703e4180bb
MD5 dcf04ad3540fba68664eefc2a73376af
BLAKE2b-256 bfd2e630ff496d204bedbc8b12a349b1fc00da5fb7fbf3b32067879e15c0fe3e

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