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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce34281c6ab23d3f808b9100b32c841ffa527b81e4a068159cb8b5f3e337911b |
|
MD5 | 6a54b6c029555e7721eb2e3249fc715a |
|
BLAKE2b-256 | 98004cbbe24f82da9d31df2e0f41d4b638e9db0b4b0278c2e575e834312ffa5c |
Close
Hashes for scrapper_boilerplate-0.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0681687afbb0e26522f9741a9bdaead0664b99772281764cb7e83e1a14b69500 |
|
MD5 | d8ef0d87260be450348e58095a388877 |
|
BLAKE2b-256 | 81ad9890c982c99e487f22ff1df47d91b0aba34552e8e352d6ee09ad05564ed7 |