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 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
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
Close
Hashes for scrapper-boilerplate-0.2.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25d50ad29412f57cb6a4b74c323e693287366d4aa68da8ceb2938c6012f8ac9c |
|
MD5 | e5e26a0a1ca68f8a0dac16323f54abf3 |
|
BLAKE2b-256 | 88f6041f6620434939c6f7e45a57b6d0b8f2c90147559fc3da4eb11fa0e1944b |
Close
Hashes for scrapper_boilerplate-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fbe767d00c8d537036efba81494e22942ebe9e355b941b6676e44a1892c7869 |
|
MD5 | 9c18130aba387d19837544c113226840 |
|
BLAKE2b-256 | f1b0508c2d298ad22199735de19e4dd87862ccea8251a97e7a3f102051ab04b9 |