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.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b2a96128fbdf0ff8ceb3f7c43bfece463d1dd56a521f8e40469d0b9991af9d6 |
|
MD5 | 3d3ab748b1d50c93757a654d0dfd1118 |
|
BLAKE2b-256 | 7df6a7b7ac6f325c2eff586a014b85c7a240c1eb55a3b4b2e09bf538a7b92260 |
Close
Hashes for scrapper_boilerplate-0.2.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d83544f0d982bb25cc4749c4ba7c2ebf91b4b34e6a4821dafa9f7a36314ca924 |
|
MD5 | 21877f8109159dd88c4bab4ae14b0dbc |
|
BLAKE2b-256 | 23f5b8d52b277d121229de39f65fd839765bb1dd09c6fbce9f14f00c5c899498 |