Skip to content

Dockerized app containing Python driver for Selenium (Firefox)

License

Notifications You must be signed in to change notification settings

bjogden/Arachnid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arachnid

What

Dockerized Python scraper using Selenium with Firefox web driver.

Why

Simply using Python's requests library will not allow for JavaScript execution on a web page. Selenium takes web automation a step further by loading a full (headless) web browser to allow for JavaScript execution.

How

  • Docker
  • Python 3.9
    • Jupyter Notebook
  • Selenium
    • Firefox

Pre-commit Setup

  1. cd Arachnid
  2. cp git-hooks/pre-commit .git/hooks/
  3. chmod +x .git/hooks/pre-commit

...or all as one line: cd Arachnid && cp git-hooks/pre-commit .git/hooks/ && chmod +x .git/hooks/pre-commit

Local Development

  1. docker-compose up
  2. Navigate to http://localhost:8888 to open Jupyter Notebook UI to create new Python notebook
  3. Import Selenium, and get started

Tools

Black

Inside of Docker container, run:

  • black --check app/ to check black's changes
  • black app/ to make changes

About

Dockerized app containing Python driver for Selenium (Firefox)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published