TREB IDX WordPress Integration with Python : Integrate WordPress and TREB real estate listings!

treb-wordpress-integration

TREB WordPress Integration with our open source python solution

We know that some of you are definitely looking forward to the release of this integrated system that has been promised quite a while ago.

Well the time has come for us to release the open source Python code that seamlessly does the following :

  • Download TREB listing data straight from the source
  • Filters data based on a number of adjustable filtration parameters (i.e. Minimum listing price)
  • Download TREB listing photos straight from the source
  • Integrate and format data via a 100% adjustable listing template
  • Import listings straight into wordpress
  • Marks existing listings as sold if the data reflects it from TREB

Being able to utilize this script on your server assumes the following :

  • You have root access to your server
  • You are on a Unix or Linux based server (Should work in Windows, but untested)
  • You already have signed and completed the TREB authorization forms for TREB to formally delegate access to their listing data as an authorized agent

TREB WordPress Installation Instructions

Before we get started on the installation instructions, you should have a working and up-to-date wordpress blog. The listing template that the script uses to generate posts of real estate listings assumes that you have the following 3rd party wordpress plugins installed, however feel free to change the listing template as you see fit to utilize whatever plugins, shortcode or anything of the like that you need :

1. Get The Code

Head on over to the GitHub project page for the TREB WordPress python code, and clone the repository.

2. Set up your config file

The configuration file should be located in ~/.treb_wordpress. A sample of the configuration file can be viewed on the GitHub project page. All the configuration parameters are self explanatory.

3. Install the wordpress plugins

As mentioned earlier in this post, the default listing template depends on 3 wordpress plugins. Make sure they are installed. Specifically for the Lazyest Gallery plugin, you might want to change the default gallery path to /wp-content/uploads/treb/ which is where the script downloads the gallery images for each real estate listing by default.

4. Run the script

The script expects 2 options to be passed to it in order to run. The syntax for running the script is as follows :

Usage Syntax :
treb_fetch.py [option1] [option2]
Option 1 : "avail" "unavail" , processes available or unavailable listings
Option 2 : Number of days prior to gather listing data

Note that the “avail” and “unavail” options are currently not in use. This post will be updated as soon as the script has the ability to automatically remove listings that have been marked by TREB as unavailable.

Curious what a site looks like that uses this script? Take a look here

Update: 11/18/2016 , We created a beta WordPress plugin to integrate with TREB

For those who have arrived to this page looking for an easy WordPress TREB integration (for free), we started to create a beta version of a WordPress plugin that takes care of everything for you. It is currently being hosted at Github, however it will be submitted to the WordPress plugin directory once it is in a more stable state.

You can see the Github page of the plugin here : Treb WordPress Integration Plugin

You can see the preliminary blog post we wrote about background processes for pulling TREB data : WordPress plugin to connect to TREB and run as a background process

Subscribe
Notify of
guest
19 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Radek
Radek
8 years ago

so my agent id is the 7 digit number that I use to login to treb, what about the treb user name and password? Where do I find that? Thx

shift8web
shift8web
7 years ago
Reply to  Radek

Your agent ID is the 7 digit number. The treb username and password is obtained after submitting the approval form to TREB. You can contact TREB directly for this – they will ask you and your Broker Manager to sign the form requesting access. Then TREB will provide a username / password to access their site.

Radek
Radek
7 years ago
Reply to  shift8web

Cool thanks, I do believe you have to pay for that username/password monthly. I think its $5/ month?Cool thanks, I do believe you have to pay for that username/password monthly. I think its $5/ month?

shift8web
shift8web
7 years ago
Reply to  Radek

You’ll have to talk to TREB and your brokerage manager. I dont believe there is a monthly fee for the username/password, but I could be wrong

johnatan
johnatan
8 years ago

Do you have any other examples?

shift8web
shift8web
7 years ago
Reply to  johnatan

No – not at this time.

Johnatan
Johnatan
7 years ago
Reply to  shift8web

Do you offer installation? Please email me at johnatan.basden@gmail.com

shift8web
shift8web
7 years ago
Reply to  Johnatan

No , not at this time , sorry.

Waqas Ali
Waqas Ali
7 years ago

Good to hear! I am real estate sales representative, want to set it up email at @ ali786_81@hotmail.com

Chris
Chris
7 years ago

Is this a program by shift8 called python or just a tutorial for the treb property search? Do you provide an extra service?? sorry a bit confused

shift8web
shift8web
7 years ago
Reply to  Chris

Python is the name of the programming language used to create the system described in this post. We would be happy to provide integration of this system as a service, though typically it would be included in an overall web design project. If you’re interested , head over to our quote form and reach out to our web dev team : http://www.shift8web.ca/get

Praj
Praj
7 years ago

so how does one Run the python script? so far i have the plugins downloaded. I’m stuck here. Not sure where to place the extracted zip from your github. or where to run the python script from? please any help would be appreciated.

Kash
Kash
7 years ago

Can alerts be setup? Does it take out SC (sold conditional) listings when displaying to users?

thanks

Johnatan Basden
Johnatan Basden
6 years ago

updates? how do we run the script

Davy
Davy
6 years ago

Amazing Script, thank you so much

Jaspreet Singh
Jaspreet Singh
6 years ago

The treb_fetch.py file is not in the GitHub folder. It is referred to in treb_wordpress.py but my programmer has told me that you can’t call a script from within itself. Can anyone help with this? Is this script still working btw?

shift8web
shift8web
6 years ago
Reply to  Jaspreet Singh

treb_fetch.py” and “treb_wordpress.py” are the same file. The example in this post here just referes to it as a different filename. This system is only one python file.

Jaspreet Singh
Jaspreet Singh
6 years ago
Reply to  shift8web

Thank you for the quick reply. If you offer installation please do get back to me as no one appears to be able to help me out with this!

Supreet Kaur
Supreet Kaur
4 years ago

Do i need to have all the three plugins Acronix Shortcodes,Comprehensive Google Map Plugin,Lazyest Gallery before installing your plugin?