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
scrapper-boilerplate-0.2.6.tar.gz
(10.1 kB
view hashes)
Built Distribution
Close
Hashes for scrapper-boilerplate-0.2.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16cf5a179961cd1d75e9ed5a9ee3d93912f5b4d8d50dbdd0054f787d55696953 |
|
MD5 | 847b265118771c6680f7039fa9743438 |
|
BLAKE2b-256 | ad561c48ce889a12a31252272dab98b3a92d5d46c5557de45f1dbca41efc8e74 |
Close
Hashes for scrapper_boilerplate-0.2.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b42faf9c6c9969173c4de4b25480c80d419b51cef46e0f690ec3f10c3777902 |
|
MD5 | 914286b719a4e720592b5d2f763fe55f |
|
BLAKE2b-256 | 1213b5bb3d28644a1d4cec0aa435c089e7e7c3c979b24b6f60480206088ca571 |