adding floorplans, detail json, refactored the folders
This commit is contained in:
parent
e2f7998ee9
commit
46bb641026
215 changed files with 481 additions and 23 deletions
|
|
@ -1,15 +1,12 @@
|
|||
import pickle
|
||||
|
||||
import cachetools
|
||||
from diskcache import Cache
|
||||
# from diskcache import Cache
|
||||
import requests
|
||||
from rec.db import RightmoveListing
|
||||
# from rec.db import RightmoveListing
|
||||
|
||||
import urllib3
|
||||
|
||||
urllib3.disable_warnings()
|
||||
|
||||
cache = Cache(r"_cache")
|
||||
# cache = Cache(r"_cache")
|
||||
|
||||
headers = {
|
||||
"Host": "api.rightmove.co.uk",
|
||||
|
|
@ -32,7 +29,7 @@ def detail_query(detail_id: int):
|
|||
return response.json()
|
||||
|
||||
|
||||
@cache.memoize()
|
||||
# @cache.memoize()
|
||||
def listing_query(page: int, min_bedrooms: int, max_bedrooms: int, radius: float, min_price: int, max_price: int):
|
||||
print("Querying")
|
||||
params = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue