mirror of
https://github.com/Bunsly/HomeHarvest.git
synced 2026-03-04 19:44:29 -08:00
feat(scrapers): add zillow
This commit is contained in:
@@ -3,10 +3,7 @@ from homeharvest import scrape_property
|
||||
|
||||
def test_realtor():
|
||||
results = [
|
||||
scrape_property(
|
||||
location="85281",
|
||||
site_name="realtor.com"
|
||||
),
|
||||
scrape_property(location="85281", site_name="realtor.com"),
|
||||
]
|
||||
|
||||
assert all([result is not None for result in results])
|
||||
|
||||
@@ -3,22 +3,10 @@ from homeharvest import scrape_property
|
||||
|
||||
def test_redfin():
|
||||
results = [
|
||||
scrape_property(
|
||||
location="2530 Al Lipscomb Way",
|
||||
site_name="redfin"
|
||||
),
|
||||
scrape_property(
|
||||
location="Phoenix, AZ, USA",
|
||||
site_name="redfin"
|
||||
),
|
||||
scrape_property(
|
||||
location="Dallas, TX, USA",
|
||||
site_name="redfin"
|
||||
),
|
||||
scrape_property(
|
||||
location="85281",
|
||||
site_name="redfin"
|
||||
),
|
||||
scrape_property(location="2530 Al Lipscomb Way", site_name="redfin"),
|
||||
scrape_property(location="Phoenix, AZ, USA", site_name="redfin"),
|
||||
scrape_property(location="Dallas, TX, USA", site_name="redfin"),
|
||||
scrape_property(location="85281", site_name="redfin"),
|
||||
]
|
||||
|
||||
assert all([result is not None for result in results])
|
||||
|
||||
12
tests/test_zillow.py
Normal file
12
tests/test_zillow.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from homeharvest import scrape_property
|
||||
|
||||
|
||||
def test_zillow():
|
||||
results = [
|
||||
scrape_property(location="2530 Al Lipscomb Way", site_name="zillow"),
|
||||
scrape_property(location="Phoenix, AZ, USA", site_name="zillow"),
|
||||
scrape_property(location="Dallas, TX, USA", site_name="zillow"),
|
||||
scrape_property(location="85281", site_name="zillow"),
|
||||
]
|
||||
|
||||
assert all([result is not None for result in results])
|
||||
Reference in New Issue
Block a user