Giter Site home page Giter Site logo

airbnb-screenshots's Introduction

Pull Airbnb Screenshots

A simple tool to grab pages in bulk from Airbnb for auditing purposes, for Airbnb employees only (it won't work unless you have an internal airbnb login).

Installation

There are a few dependencies to set up. This is a one time setup for each computer.

Dependencies

  1. Brew (to install node.js and other goodies). To install brew, open up Terminal and run: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)", and follow the instructions
  2. Install node with brew install node. To confirm it worked, run node -v

Installing airbnb-screenshots

  1. Clone this repository by running git clone https://github.com/gorillamania/airbnb-screenshots.git If you haven't installed git yet, you will be prompted with instructions on how to do so
  2. Run cd airbnb-screenshots; npm install to install the required packages

Chrome Extension for getting Airbnb cookies

The tricky part to getting this to work was passing the login cookies to the browser that is doing the screenshots. The solution (if you can call it that) that I used was to use a Chrome extension called Edit This Cookie. It has an export that will give you all the cookies for a given website.

To get your Airbnb cookies:

  1. Install the chrome extension
  2. Visit airbnb.com. Log in.
  3. Click on the Cookie in the toolbar. Click "Export". This will copy the cookies to the clipboard. Save this to a text file (using Textedit). Recommend cookies.json as the name of the file.

Running

  1. Create the CSV file with the reservation ids. 1 column. For a sample format, see media/sample_reservations.csv
  2. From terminal, cd into the directory where you cloned the repository (if you haven't already) (cd airbnb-screenshots) and run ./grab --cookie-jar=$cookieFile $inputfile $outputDir, where $cookieFile is the file you created with the Edit This Cookie extension, $inputFile is the CSV you created, and $outputDir is the directory where you want to have the files saved.

This will open the CSV file and fetch the reservation detail page for each reservation, saving it as $resid.png in the output directory.

airbnb-screenshots's People

Contributors

technickai 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.