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.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92408b9920a174391e79b2c78832f7ea3c707ab44ec175a44c6ede668d6dfde6 |
|
MD5 | 7605cf01aa3850209200299413e62df2 |
|
BLAKE2b-256 | 4b93da74174b4fc95b7f47ac6aea826785b127b58ea08f59be17c3a6a9a9b1ec |
Close
Hashes for scrapper_boilerplate-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6da9545baeec7d3a38d5b3bd8c22912941dc6447cbe644f6ddb9fc02c9c3932 |
|
MD5 | 82ad146efa0477e3ebf8d0c982110fc5 |
|
BLAKE2b-256 | c52b7c1462b18d771ab9eca6c7f898e2b922c7fb46408b37f914bc6c50b07794 |