npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

onthemarket-scraper

v0.2.2

Published

Easily scrape OnTheMarket property data.

Downloads

6

Readme

OnTheMarket-Scraper

Safe NPM

Easily Scrape OnTheMarket property data

To get all properties in an outcode and first page:

var OnTheMarket = require('onthemarket-scraper');

OnTheMarket.byOutcode('HP13', 0);
/*
  {
    "total": 46,
    "properties": [
        {
            "address": "Bourne End, Buckinghamshire",
            "price-qualifier": "default",
            "prop-type": "houses",
            "agent": {
                "id": 3448,
                "logo-path": null,
                "logo-url": "https://s3-eu-west-1.amazonaws.com/images.agentsmutual.co.uk/agents/8f78dbce-8b3d-4331-934d-abfc43a8128b.png"
            },
            "promotional-text": "",
            "bedrooms": 7,
            "id": 1057067,
            "fees": false,
            "location": {
                "lat": 51.588001,
                "lon": -0.70621401
            },
            "price": 6750000,
            "media": {
                "virtualtours": [],
                "documents": [
                    {
                        "url": "http://89.213.252.239/servlets/VS/servlet/FlippyPreviewerServlet?COMPANY_ID=FIN&OVERRIDE=false&PROP_REF=FIN080100394"
                    },
                    {
                        "url": "http://www.chewtonrose.co.uk/FIN080100394"
                    },
                    {
                        "url": "http://89.213.252.250/servlets/SPO/servlet/servlets.EPCGrapherServlet?RT=IMG&IS=2&EEC=34&EEP=44&EIC=45&EIP=53"
                    }
                ],
                "floorplans": [
                    {
                        "url": "/properties/1057067/flp_0_0.jpg"
                    }
                ],
                "images": [
                    {
                        "large-url": "/properties/1057067/img_0_8_large.jpg",
                        "url": "/properties/1057067/img_0_8_thumbnail.jpg"
                    },
                    {
                        "large-url": "/properties/1057067/img_1_8_large.jpg",
                        "url": "/properties/1057067/img_1_8_thumbnail.jpg"
                    },
                    {
                        "large-url": "/properties/1057067/img_2_8_large.jpg",
                        "url": "/properties/1057067/img_2_8_thumbnail.jpg"
                    },
                    {
                        "large-url": "/properties/1057067/img_3_8_large.jpg",
                        "url": "/properties/1057067/img_3_8_thumbnail.jpg"
                    },
                    {
                        "large-url": "/properties/1057067/img_4_8_large.jpg",
                        "url": "/properties/1057067/img_4_8_thumbnail.jpg"
                    },
                    {
                        "large-url": "/properties/1057067/img_5_2_large.jpg",
                        "url": "/properties/1057067/img_5_2_thumbnail.jpg"
                    },
                    {
                        "large-url": "/properties/1057067/img_6_1_large.jpg",
                        "url": "/properties/1057067/img_6_1_thumbnail.jpg"
                    },
                    {
                        "large-url": "/properties/1057067/img_7_1_large.jpg",
                        "url": "/properties/1057067/img_7_1_thumbnail.jpg"
                    },
                    {
                        "large-url": "/properties/1057067/img_8_2_large.jpg",
                        "url": "/properties/1057067/img_8_2_thumbnail.jpg"
                    },
                    {
                        "large-url": "/properties/1057067/img_9_1_large.jpg",
                        "url": "/properties/1057067/img_9_1_thumbnail.jpg"
                    },
                    {
                        "large-url": "/properties/1057067/img_10_1_large.jpg",
                        "url": "/properties/1057067/img_10_1_thumbnail.jpg"
                    },
                    {
                        "large-url": "/properties/1057067/img_11_2_large.jpg",
                        "url": "/properties/1057067/img_11_2_thumbnail.jpg"
                    },
                    {
                        "large-url": "/properties/1057067/img_12_1_large.jpg",
                        "url": "/properties/1057067/img_12_1_thumbnail.jpg"
                    },
                    {
                        "large-url": "/properties/1057067/img_13_0_large.jpg",
                        "url": "/properties/1057067/img_13_0_thumbnail.jpg"
                    },
                    {
                        "large-url": "/properties/1057067/img_14_0_large.jpg",
                        "url": "/properties/1057067/img_14_0_thumbnail.jpg"
                    },
                    {
                        "large-url": "/properties/1057067/img_15_0_large.jpg",
                        "url": "/properties/1057067/img_15_0_thumbnail.jpg"
                    },
                    {
                        "large-url": "/properties/1057067/img_16_0_large.jpg",
                        "url": "/properties/1057067/img_16_0_thumbnail.jpg"
                    },
                    {
                        "large-url": "/properties/1057067/img_17_0_large.jpg",
                        "url": "/properties/1057067/img_17_0_thumbnail.jpg"
                    },
                    {
                        "large-url": "/properties/1057067/img_18_0_large.jpg",
                        "url": "/properties/1057067/img_18_0_thumbnail.jpg"
                    },
                    {
                        "large-url": "/properties/1057067/img_19_0_large.jpg",
                        "url": "/properties/1057067/img_19_0_thumbnail.jpg"
                    },
                    {
                        "large-url": "/properties/1057067/img_20_1_large.jpg",
                        "url": "/properties/1057067/img_20_1_thumbnail.jpg"
                    },
                    {
                        "large-url": "/properties/1057067/img_21_3_large.jpg",
                        "url": "/properties/1057067/img_21_3_thumbnail.jpg"
                    },
                    {
                        "large-url": "/properties/1057067/img_22_0_large.jpg",
                        "url": "/properties/1057067/img_22_0_thumbnail.jpg"
                    },
                    {
                        "large-url": "/properties/1057067/img_23_1_large.jpg",
                        "url": "/properties/1057067/img_23_1_thumbnail.jpg"
                    },
                    {
                        "large-url": "/properties/1057067/img_24_0_large.jpg",
                        "url": "/properties/1057067/img_24_0_thumbnail.jpg"
                    }
                ]
            },
            "instruction-type": "for-sale"
        }, .. ]}
*/

To get details iof property:

var OnTheMarket = require('onthemarket-scraper');

OnTheMarket.detail('1057067');

/*
{ description: 'Walking through his exquisite...',
  address: 'Bourne End, Buckinghamshire',
  'price-qualifier': 'default',
  'prop-type': 'houses',
  'nearby-places': 
   { pharmacy: 
      [ [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object] ],
     dentist: [ [Object], [Object], [Object] ],
     surgery: 
      [ [Object],
        [Object],
        [Object],
        [Object],
        [Object] ],
     supermarket: [ [Object] ],
     school: 
      [ [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object] ],
     station: [ [Object] ] },
  agent: 
   { affiliations: [],
     address: '30 Packhorse Road\nGerrards Cross\nSL9 7DA',
     email: '[email protected]',
     'logo-path': '/agents/8f78dbce-8b3d-4331-934d-abfc43a8128b.png',
     telephone: '01753 903956',
     name: 'Chewton Rose - Gerrards Cross',
     postcode: 'SL9 7DA',
     type: 'all',
     id: 3448,
     'logo-url': 'https://s3-eu-west-1.amazonaws.com/images.agentsmutual.co.uk/agents/8f78dbce-8b3d-4331-934d-abfc43a8128b.png',
     location: { lat: 51.587399, lon: -0.55374002 } },
  summary: 'THE GREAT ESTATE They found the breathtaking, 10-acre setting and were drawn to the privacy and tranquillity it offered - and there they created a magnificent dream home',
  'promotional-text': '',
  bedrooms: 7,
  id: 1057067,
  fees: false,
  location: { lat: 51.588001, lon: -0.70621401 },
  price: 6750000,
  media: 
   { virtualtours: [],
     documents: [ [Object], [Object], [Object] ],
     floorplans: [ [Object] ],
     images: 
      [ [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object] ] },
  'instruction-type': 'for-sale' }

*/