Giter Site home page Giter Site logo

auto-scrapers's Introduction

Auto Scrapers

A collection of configurations and scripts to aid in the search for secondhand car offers. Follow the instructions to gather car offers in a spreadsheet, and to precalculate the travel time to these cars from your own location. Happy hunting!

Animation of filled spreadsheet

Before proceeding with the instructions below, first download and extract master.zip or clone this git repository.

Favorites Scraper for Autoscout24

Setup Autoscout24 account

Setup Web Scraper

Scrape car offers

  • Open Chrome devtools (F12).
  • Select Web Scraper tab.
  • Select autoscout24-favs sitemap.
  • Sitemap context menu > Scrape (⏳).
  • Sitemap context menu > Export data as CSV.

You should now have a file named autoscout24-favs.csv.

Load offer data into Google sheet

See the formatted result in the "overview" sheet. You may sort, filter, and set up views here.

Add Route Data from Google Maps

Setup Google Maps account

  • Log in to Google Maps.
  • Set your home address.
  • Plan a route with your preferred mode of transport.

The scraper will use the home address that you set, and will plan routes with the mode of transport that was last selected.

Install Python v3.6+

See https://www.python.org/downloads/. Windows 10 users can install Python from the Microsoft Store, or by typing python in a PowerShell window.

Please confirm your Python version by typing python -v into a shell. You may have to use the python3 program instead, if you also have an old v2.x installed.

Scrape Google Maps data

  • Run python fill_maps_start_urls.py autoscout24-favs.csv google-maps.json in a shell.
  • In Web Scraper, go back to Sitemaps.
  • Delete google-maps with the red button, if it exists.
  • "Create new sitemap" > Import sitemap.
  • Paste the updated google-maps.out.json.
  • "Import Sitemap" (button).
  • Sitemap context menu > Scrape (⏳).
  • Sitemap context menu > Export data as CSV.

You should now have a file named google-maps.csv.

Load travel data into Google sheet

  • Open the google-maps sheet.
  • Select cell A1.
  • File > Import: google-maps.csv.
  • "Replace data at selected cell".

The "overview" sheet should now include values in the route-distance and route-minutes columns.

Legal Issues

Depending on your legal jurisdiction, limitations may apply to your use of this software. Users are responsible for obtaining legal advice regarding their use of this software.

Usage of the Autoscout24 scraper may lead to a violation of the EU Database Directive or similar copyright protections. It could be argued that data exported from the scraper is a partial reproduction of an Autoscout24 database.

auto-scrapers's People

Contributors

aolieman avatar

Stargazers

 avatar

Watchers

 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.