Git Product home page Git Product logo

vehicle-history-reports's Introduction

Vehicle History Reports

GitHubBuild Status Python

Web scrapping tool for Vehicle information by VIN number

Installation

Before you install ensure that geckodriver for Firefox is installed.

  • Download geckodriver
    • wget https://github.com/mozilla/geckodriver/releases/download/v0.24.0/geckodriver-v0.24.0-linux64.tar.gz
  • Extract: tar -xvzf geckodriver-v0.24.0-linux64.tar.gz
  • sudo cp geckodriver /usr/local/bin

To install Vehicle History Reports, run this command in your bash terminal:

    sudo pip install -U .

This is the preferred method to install Vehicle History Reports, as it will always install the most recent stable release.

Usage

usage: vin_scrapper.py [-h] --vin-numbers VIN_NUMBERS [VIN_NUMBERS ...]
                       [--no-headless] [--no-json-output] [--host HOST]
                       [--port PORT] [--username USERNAME]
                       [--password PASSWORD] [--loglevel LOG_LEVEL]

Web scrapping tool for Vehicle information by VIN number

optional arguments:
  -h, --help            show this help message and exit
  --vin-numbers VIN_NUMBERS [VIN_NUMBERS ...], -v VIN_NUMBERS [VIN_NUMBERS ...]
                        A list of VIN numbers.
  --no-headless         Do not open browser in headless mode.
  --no-json-output, -j  Output as json.
  --host HOST           Proxy address.
  --port PORT           Proxy port.
  --username USERNAME   Username to access proxy.
  --password PASSWORD   Password to access proxy.
  --loglevel LOG_LEVEL  log level to use, default [INFO], options [INFO,
                        DEBUG, ERROR]

Example: vin_scrapper.py --vin-numbers 3AKJGLD57FSGD1225 --host 23.94.44.65 --port 10998

Usage with PHP

Example:

Copy below code to run.php

<html>
 <body>
  <head>
   <title>
     run
   </title>
  </head>

   <form method="post">

    <input type="submit" value="GO" name="GO">
   </form>
 </body>
</html>

<?php
    if(isset($_POST['GO']))
    {
      $message = shell_exec("python3 /usr/local/bin/vin_scrapper.py --vin-numbers JN8AZ2NC3G9400704 --host 23.94.44.65 --port 10998");
      print_r($message);
    }
?>

Run php: php -S 127.0.0.1:8080 -t .

then in your browser goto: http://localhost:8080/run.php hit Go and see the scrapping....

Demo

demo

Oh, Thanks!

By the way... Click if you'd like to saythanks... :) else Star it.

โœจ๐Ÿฐโœจ

vehicle-history-reports's People

Contributors

mmphego avatar

Stargazers

chijioke kabuo avatar  avatar  avatar Abdullah Mujeeb avatar Ethan Priest avatar Piotr  avatar  avatar  avatar

Watchers

James Cloos avatar  avatar  avatar  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.