Skip to content

sezRR/coolorsco-color-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coolorsco Color Scraper

Coolors Scraper

This project is a web scraping tool that retrieves color codes from the Coolors website and saves them in JSON format. Additionally, there is an unittest example to verify the accuracy of this tool.

Installation

  1. Clone the repository:

    git clone https://github.com/sezRR/coolorsco-color-scraper
  2. Navigate to the project directory:

    cd coolorsco-color-scraper
  3. Create a virtual environment:

    python -m venv venv
  4. Activate the virtual environment:

    • On Windows:
      venv\Scripts\activate
    • On macOS/Linux:
      source venv/bin/activate
  5. Install the required libraries:

    pip install -r requirements.txt
  6. Run the project:

    python scrape.py

Project Structure

  • scrape.py: The main module that retrieves color information from the website and saves it to JSON files.

Testing

To run the provided unittest, execute the following command in the terminal or command prompt:

python tests/test_scraping.py

or

pytest

Releases

No releases published

Packages

No packages published

Languages