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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 125768949b39c0afeaa5bd693f6908a044cedf91a34e5979987006df5588e3b3 |
|
MD5 | 1838c2193aa96c33fad6c25e4d2c50c0 |
|
BLAKE2b-256 | 30203734d3416b02d6576867d443b76255737f98632febc70e3aef37c36f8e6e |
Close
Hashes for scrapper_boilerplate-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a279b9f2c1401133d5125c152ebc4e3331dcda1e9e77649330bc72c56b6dd5d |
|
MD5 | 759c402d226aa336ad0ab79baaa2b6ea |
|
BLAKE2b-256 | 7e7c5c74d081b5f8bc51d769754c45fd0433ba48904e96cae62a91e76ef40d17 |