Git Product home page Git Product logo

logo-extractor's Introduction

Logo-Extractor

Crawler which extracts logos from websites

Cloning Crawler

git clone [email protected]:Isabek/Logo-Extractor.git ~/projects/Logo-Extractor

Installation

Virtual Environment

Install virtualenv and create virtual environment for crawler.

cd ~/projects/Logo-Extractor
virtualenv -p python3 venv
source venv/bin/activate

Install Dependencies

pip install -r requirements.txt

Install Chrome driver

You can download Chrome driver here and install it.

If you use Ubuntu you can install like this:

wget https://chromedriver.storage.googleapis.com/2.41/chromedriver_linux64.zip
unzip chromedriver_linux64.zip
sudo mv chromedriver /usr/bin/chromedriver
sudo chown ${USER}:${GROUP} /usr/bin/chromedriver
sudo chmod +x /usr/bin/chromedriver

Run chrome headless driver

chromedriver --url-base=/wd/hub

Usage

scrapy runspider spider.py -a input_file_path=logo-extraction.txt -o result.json

input_file_path - localtion of file which contains websites

o - output file

Format should be as shown below

Webpage Url,Logo Url
http://ground-truth-data.s3-website-us-east-1.amazonaws.com/autoglassforyou.com,http://ground-truth-data.s3-website-us-east-1.amazonaws.com/autoglassforyou.com/images/logo-change.gif

Checker

Crawler writes results to json file. Example: result.json.

If you want to check accuracy of extracted logos run next command

python checker.py -actual logo-extraction.txt -json result.json

logo-extractor's People

Contributors

isabek avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.