Giter Site home page Giter Site logo

save-the-price's Introduction

house prices scrapper

Goal

Collect house listings every day, save them in google sheets and google storage for later analysis.

Running locally

Prerequisites:

  • google account
  • gsheet id
  • google storage
  • secrets
  • otodom search criteria

ENV VARS:

  • GCS_PROJECT
  • GCS_BUCKET
  • GCS_SA_KEY
otodomsearchcriteriaurl='https://www.otodom.pl/sprzedaz/mieszkanie/krakow/?search[filter_float_price:to]=1600000&search[filter_float_m:from]=70&search[filter_float_m:to]=120&search[filter_enum_rooms_num][0]=4&search[filter_enum_rooms_num][1]=5+&search[filter_enum_market][0]=secondary&search[filter_float_build_year:from]=1995&search[filter_float_build_year:to]=2019&search[city_id]=38&zoom=15&lat=50.064663716138&lon=19.889994965510223'

dotenv python3 scrape.py [options] $otodomsearchcriteriaurl

Roadmap

Phase 1:

  • - collect data from otodom given a predefined search criteria
  • - append to google sheets and save a detailed file in google storage
  • - automate through google actions

Phase 2:

  • [] - write scripts to analyse the change

GitHub Actions

Service Account

A service account with appropriate permissions on the Cloud Storage bucket is required for GitHub Actions to deploy the site - See Creating and managing service accounts

Secrets

The GitHub Actions workflow depends on the following secrets, which must be configured for the repo - See Creating and storing encrypted secrets:

Secret Name Description
GCS_PROJECT The name of the CGP project containing the Cloud Storage Bucket
GCS_BUCKET The name of the Cloud Storage bucket to deploy the site
GCS_SA_KEY The base64 encoded authentication key for the service account with privileges to deploy the site - See Creating and managing service account keys

Testing

The GitHub Actions workflow can be tested locally using act.

To supply secret values for testing you must export them as environment variables - The required variables are shown (as secrets) in .actrc.

save-the-price's People

Contributors

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.