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
File details
Details for the file scrapper-boilerplate-0.2.1.tar.gz
.
File metadata
- Download URL: scrapper-boilerplate-0.2.1.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
ee05415afa132939752a5ee55412ac0301c37b5a5cfca7720583491af05630fa
|
|
MD5 |
1356d23f537b08eccad0008128619490
|
|
BLAKE2b-256 |
6802bf00326ad571f43deb77ebbd6a272773c578b6132fa8549a1e27889342d5
|
File details
Details for the file scrapper_boilerplate-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: scrapper_boilerplate-0.2.1-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
003560b8bd0c7b2166f52b97f0b6d9040b777518f134c28cdbc7afd497daa245
|
|
MD5 |
26b7b4b99ef18f08a53430de759b0d7b
|
|
BLAKE2b-256 |
b752f92577e3189f356f74286f0451bb76a63164a36b8c7a315eaa341f0882f8
|