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.12.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16350c9cf226140610c2cf0438db7327019fc2a45d606f3a91f5a71c2860cddc |
|
MD5 | 4682a55af94fa49ac5381f9c25b8207c |
|
BLAKE2b-256 | 9eb66f685caa3a74bed92a895b0855c7dd74af024bb236c905f8d646b696825c |
Close
Hashes for scrapper_boilerplate-0.2.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a08b1ddad669047445378225ef0db5d12f8cc495227be9dae3572118b068e537 |
|
MD5 | 83f0e40ea4afdd7dbcb4608eda68525b |
|
BLAKE2b-256 | 39e68cae5dae1bff48e9cb808bc940c91ba73ffb4e3c2375b450e4cb0920bd0c |