An open API service indexing awesome lists of open source software.

https://github.com/vasistareddy/any_pagesource_scraper_selenium

Extract pagesource/html from the selenium webdriver with get request of Flask API
https://github.com/vasistareddy/any_pagesource_scraper_selenium

docker docker-image flask-api html selenium selenium-python selenium-webdriver

Last synced: 4 months ago
JSON representation

Extract pagesource/html from the selenium webdriver with get request of Flask API

Awesome Lists containing this project

README

        

# docker_selenium_pagesource_flask
Extract pagesource/html through selenium webdriver with get request of Flask API

# guide for the docker installation @digitalocean
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-18-04

# Build the docker

docker build . -t selenium:pagesource

# Run the docker

docker run -p 5056:5056 --env DISPLAY=:10 -d selenium:pagesource

- This will make docker to run in detached mode

# endpoint

## - pagesource

# querystrings

## params:
- url
## response:
200:
- status_code: 200
- pageSource:
500:
- status_code: 500
- erro: error message

Ex: http://localhost:5056/pagesource?url=http://vasistareddy.blogspot.com/