pyzill


Namepyzill JSON
Version 0.0.3 PyPI version JSON
download
home_pageNone
SummaryZillow scraper in Python
upload_time2024-10-29 02:41:21
maintainerNone
docs_urlNone
authorNone
requires_pythonNone
licenseMIT
keywords zillow scraper crawler
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Zillow scraper in Python

## Overview
This project is an open-source tool developed in Python for extracting product information from Zillow. It's designed to be easy to use, making it an ideal solution for developers looking for Zillow product data.

## Features
- Full search support
- Extracts detailed product information from Zillow
- Implemented in Python just because it's popular
- Easy to integrate with existing Python projects

### Install

```bash
$ pip install pyzill
```
## Examples

```Python
import pyzill
import json
ne_lat = 47.76725314073866
ne_long = -122.15539952490977
sw_lat = 47.67128302452179
sw_long =-122.3442270395582
zoom_value = 2
#pagination is for the list that you see at the right when searching
#you don't need to iterate over all the pages because zillow sends the whole data on mapresults at once on the first page
#however the maximum result zillow returns is 500, so if mapResults is 500
#try playing with the zoom or moving the coordinates, pagination won't help because you will always get at maximum 500 results
pagination = 1 
results_sold = pyzill.sold(pagination, ne_lat,ne_long,sw_lat,sw_long,zoom_value, "")
results_sale = pyzill.for_sale(pagination, ne_lat,ne_long,sw_lat,sw_long,zoom_value, "")
results_rent = pyzill.for_rent(pagination, ne_lat,ne_long,sw_lat,sw_long,zoom_value, "")
jsondata_sold = json.dumps(results_sold)
jsondata_sale = json.dumps(results_sale)
jsondata_rent = json.dumps(results_rent)
f = open("./jsondata_sold.json", "w")
f.write(jsondata_sold)
f.close()
f = open("./jsondata_sale.json", "w")
f.write(jsondata_sale)
f.close()
f = open("./jsondata_rent.json", "w")
f.write(jsondata_rent)
f.close()
```

```Python
import pyzill
import json
property_url="https://www.zillow.com/homedetails/858-Shady-Grove-Ln-Harrah-OK-73045/339897685_zpid/"
data = pyzill.get_from_property_url(property_url,"")
jsondata = json.dumps(data)
f = open("details.json", "w")
f.write(jsondata)
f.close()
```

```Python
import pyzill
import json
property_id=2056016566
data = pyzill.get_from_property_id(property_id,"")
jsondata = json.dumps(data)
f = open("details.json", "w")
f.write(jsondata)
f.close()
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "pyzill",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "zillow, scraper, crawler",
    "author": null,
    "author_email": "John Balvin <johnchristian@hotmail.es>",
    "download_url": "https://files.pythonhosted.org/packages/06/ed/8b9b37c7ab78dc0ba4edad1b8f9a9bf66125b4194163b5a299020379a8e5/pyzill-0.0.3.tar.gz",
    "platform": null,
    "description": "# Zillow scraper in Python\r\n\r\n## Overview\r\nThis project is an open-source tool developed in Python for extracting product information from Zillow. It's designed to be easy to use, making it an ideal solution for developers looking for Zillow product data.\r\n\r\n## Features\r\n- Full search support\r\n- Extracts detailed product information from Zillow\r\n- Implemented in Python just because it's popular\r\n- Easy to integrate with existing Python projects\r\n\r\n### Install\r\n\r\n```bash\r\n$ pip install pyzill\r\n```\r\n## Examples\r\n\r\n```Python\r\nimport pyzill\r\nimport json\r\nne_lat = 47.76725314073866\r\nne_long = -122.15539952490977\r\nsw_lat = 47.67128302452179\r\nsw_long =-122.3442270395582\r\nzoom_value = 2\r\n#pagination is for the list that you see at the right when searching\r\n#you don't need to iterate over all the pages because zillow sends the whole data on mapresults at once on the first page\r\n#however the maximum result zillow returns is 500, so if mapResults is 500\r\n#try playing with the zoom or moving the coordinates, pagination won't help because you will always get at maximum 500 results\r\npagination = 1 \r\nresults_sold = pyzill.sold(pagination, ne_lat,ne_long,sw_lat,sw_long,zoom_value, \"\")\r\nresults_sale = pyzill.for_sale(pagination, ne_lat,ne_long,sw_lat,sw_long,zoom_value, \"\")\r\nresults_rent = pyzill.for_rent(pagination, ne_lat,ne_long,sw_lat,sw_long,zoom_value, \"\")\r\njsondata_sold = json.dumps(results_sold)\r\njsondata_sale = json.dumps(results_sale)\r\njsondata_rent = json.dumps(results_rent)\r\nf = open(\"./jsondata_sold.json\", \"w\")\r\nf.write(jsondata_sold)\r\nf.close()\r\nf = open(\"./jsondata_sale.json\", \"w\")\r\nf.write(jsondata_sale)\r\nf.close()\r\nf = open(\"./jsondata_rent.json\", \"w\")\r\nf.write(jsondata_rent)\r\nf.close()\r\n```\r\n\r\n```Python\r\nimport pyzill\r\nimport json\r\nproperty_url=\"https://www.zillow.com/homedetails/858-Shady-Grove-Ln-Harrah-OK-73045/339897685_zpid/\"\r\ndata = pyzill.get_from_property_url(property_url,\"\")\r\njsondata = json.dumps(data)\r\nf = open(\"details.json\", \"w\")\r\nf.write(jsondata)\r\nf.close()\r\n```\r\n\r\n```Python\r\nimport pyzill\r\nimport json\r\nproperty_id=2056016566\r\ndata = pyzill.get_from_property_id(property_id,\"\")\r\njsondata = json.dumps(data)\r\nf = open(\"details.json\", \"w\")\r\nf.write(jsondata)\r\nf.close()\r\n```\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Zillow scraper in Python",
    "version": "0.0.3",
    "project_urls": {
        "Homepage": "https://github.com/johnbalvin/pyzill"
    },
    "split_keywords": [
        "zillow",
        " scraper",
        " crawler"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6823d216f8b00739d3ae49bdb27862830d006c090442ea257f54f263decb483c",
                "md5": "d71982a4739f37cacdbb206f85665bd4",
                "sha256": "3911ee634450f49a596fbe178c9f97606ccf5e91077b7f5ea5cb31ca6a8260f7"
            },
            "downloads": -1,
            "filename": "pyzill-0.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d71982a4739f37cacdbb206f85665bd4",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 7028,
            "upload_time": "2024-10-29T02:41:20",
            "upload_time_iso_8601": "2024-10-29T02:41:20.500631Z",
            "url": "https://files.pythonhosted.org/packages/68/23/d216f8b00739d3ae49bdb27862830d006c090442ea257f54f263decb483c/pyzill-0.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "06ed8b9b37c7ab78dc0ba4edad1b8f9a9bf66125b4194163b5a299020379a8e5",
                "md5": "d38f45304196c70ea56d18a668549d70",
                "sha256": "9c4339bc577b357c08bbac14f37925bd2b2fda096f38363a3f2a41cbe99c9189"
            },
            "downloads": -1,
            "filename": "pyzill-0.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "d38f45304196c70ea56d18a668549d70",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 6497,
            "upload_time": "2024-10-29T02:41:21",
            "upload_time_iso_8601": "2024-10-29T02:41:21.823336Z",
            "url": "https://files.pythonhosted.org/packages/06/ed/8b9b37c7ab78dc0ba4edad1b8f9a9bf66125b4194163b5a299020379a8e5/pyzill-0.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-29 02:41:21",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "johnbalvin",
    "github_project": "pyzill",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "pyzill"
}
        
Elapsed time: 0.68938s