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.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91152dc76129017c113239d839e7df8f2bcc5e762d0b8835e64a2134b439c50e |
|
MD5 | 81245dae3a8b0942209cab2c32f23240 |
|
BLAKE2b-256 | 280f47819ea3cb0e5c21ddb0fb75d2012fcdcc82e44056461e09160f5d50c4b9 |
Close
Hashes for scrapper_boilerplate-0.2.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f30b3d29ebb1d51890fc6e9ae8db73b46b9ed6b2873667948d126e797422991 |
|
MD5 | 9a1361d16660c85b58b0a11f91b8e131 |
|
BLAKE2b-256 | ecf15b782739e448d6a177f2232989a9135efdc049a5414bfbf174c813facec9 |