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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee05415afa132939752a5ee55412ac0301c37b5a5cfca7720583491af05630fa |
|
MD5 | 1356d23f537b08eccad0008128619490 |
|
BLAKE2b-256 | 6802bf00326ad571f43deb77ebbd6a272773c578b6132fa8549a1e27889342d5 |
Close
Hashes for scrapper_boilerplate-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 003560b8bd0c7b2166f52b97f0b6d9040b777518f134c28cdbc7afd497daa245 |
|
MD5 | 26b7b4b99ef18f08a53430de759b0d7b |
|
BLAKE2b-256 | b752f92577e3189f356f74286f0451bb76a63164a36b8c7a315eaa341f0882f8 |