GithubHelp home page GithubHelp logo

bogdansa / allegro-car-scraper Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ronek22/allegro-car-scraper

0.0 1.0 0.0 218 KB

Project that extracts car offers from Allegro using both apis (REST, WebApi)

C# 74.84% Python 24.72% Shell 0.43%

allegro-car-scraper's Introduction

Allegro car offers scraper

About project

Project consists of two seperate programs

My goal is to scrap all car offers from allegro and group results by dealer. Dealer should store data about nickname, link, average_price, average_production_year I ran immediately into problems, because allegro in new api doesn't provide endpoints for details of given offer and details of user based on his id So in this app I just implement authorization (luckily it can be used in webapi) and downloading all offers(offerId, offerTitle, price)

Firstly, after authorized in REST, you need to manualy copy secret.json to webapi project folder(if token expired, you need to refresh it in REST). Web Api provide endpoints for getting details about offer, this endpoint also return data about nickname so it's all i ever wanted. Also you need to copy data_without_grouping.json from REST. I also added multithreading to speed up, because on single thread takes 4 hours to complete, after changes it only requires ~4 minutes, so it's big improvement.

TODO

  • Write script to automatically run two programs
  • Export result to xsl instead of csv

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.