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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a2182fd6110618f27ee8dca0141416b9834bde7f266d367bc68044da2555416 |
|
MD5 | a15e918c6d0b4d216eda54ee03507bd8 |
|
BLAKE2b-256 | 3da195371b634d25abfdc63e9c9d33f4d1b1c3771f02d54818e407956509af4c |
Close
Hashes for scrapper_boilerplate-0.2.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 140c1f088961b500c78c607e9e2126e76db3dede3c8f3c71eb9747055fe97454 |
|
MD5 | 1277fe5cd8c6195a41855c4a2a756417 |
|
BLAKE2b-256 | 76d16d519b9e073ee25337dc5cb9c60d8539893e922554a6f13577191063851d |