Skip to main content

SERP Real Estate Snapshots Package

A pure Python package to allow developers access to a SERP Real Estate snapshots library hosted on a NoSQL architecture.

Installation

Install using pip:

pip install sre-snapshots

Reading Snapshots

You can read snapshots by:

from sre_snapshots.download_snapshots import SnapshotLibrary

library = SnapshotLibrary(
    host='127.0.0.1', 
    database_name='my_db', 
    collection_name='my_col'
)

# First 100 snapshots
snapshots = library.find_documents(
    filter_criteria={}, 
    datetime_from='2020-07-01 00:00:00',
    datetime_to='2020-07-03 23:59:59', 
    limit=10, 
    include_id=True
)

# First 100 snapshots for a specific company
snapshots_for_company = library.find_documents(
    filter_criteria={
        'matching_keyword.name': 'my_company'
    },
    datetime_from='2020-07-01 00:00:00',
    datetime_to='2020-07-03 23:59:59',
    limit=10,
    include_id=True
)

# Specific snapshot using ObjectId
specific_snapshot = library.find_documents(
    datetime_from='2020-06-01 00:00:00',
    object_id='5ee8b4814c74c3312a81b7b8'
)

About the Database

The database is indexed on the following fields:

  • matching_keyword.name (Name of the company)
  • search_metadata.created_at (Date & time the search was performed)

Therefore, querying the library filtering on these fields will be very fast but filtering on any other field may be quite slow.

Inserting New Snapshots

TODO: Instructions on inserting new snapshots to the database.

Metadata

Release files for sre-snapshots 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sre-snapshots 0.0.8
File Size Uploaded
sre_snapshots-0.0.8.tar.gz 6.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sre-snapshots 0.0.8
File Interpreter ABI Platform
sre_snapshots-0.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 13.3 kB

Release files / sre_snapshots-0.0.8.tar.gz

Download URL sre_snapshots-0.0.8.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1556bfacac306be49abf1cf667fb13e8f9748a389380d1c3c64244a8a1a054d6
BLAKE2b-256 checksum
How to use checksums
33260a25107543d59dc7bda21212927e5bc3466550ef863495143714855b4a4f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.5.0.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.1

Release files / sre_snapshots-0.0.8-py3-none-any.whl

Download URL sre_snapshots-0.0.8-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
35e97446baeda59f8540a1ac0d4ce9017aa1815dd67701fb3a0986db6db2bfd7
BLAKE2b-256 checksum
How to use checksums
d23c57655ad7161092a370c1fd5f78e9504084bfe45dca4a308bdc91f27cd8d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.5.0.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.1

Release history Release notifications | RSS feed

This release

0.0.8 This release

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page