harry-s-grewal / mls-real-estate-scraper-for-realtor.ca

Python MLS and Real-Estate Data Scraper for the Realtor.ca Website
MIT License
52 stars 19 forks source link

Error 403 and Error 15, Access denied #12

Open 10ken opened 1 month ago

10ken commented 1 month ago

I am working with your API locally.

When I first ran data = get_property_list_by_city("Toronto, Ontario"), it returned an error,

HTTPError: 403 Client Error: Forbidden for url: https://nominatim.openstreetmap.org/search?q=Toronto,%20Ontario&format=json

I reviewed the url by openstreetmap, it did provide me with the correct information each time I ran it, although it had returned a client error.

I manually copied the json results from the website to get the boundingbox values and saved it as coords, I ran

get_property_list( coords[0], coords[1], coords[2], coords[3], current_page=1)

Error 403: Rate limited

and as well as

When i ran get_property_list for the first time, I got a Screen Shot 2024-07-16 at 12 06 37 PM

Is this an active API that can be used by anyone?

lRIP commented 1 month ago

I have the same issues, started happening about a month ago.

For https://nominatim.openstreetmap.org HTTPError: 403 Client Error: Forbidden I had to start rotating a fake user agent in, using fake_useragent module. No issues seen since then.

For the realtor api itself I'm getting the same Access denied using 'https://api2.realtor.ca/Listing.svc/PropertySearch_Post', I'm assuming the API blocked some users or the API is no longer active?