Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to download listings into CSV file, produce a 'create table' sql script for property data, and download photo URLs #60

Open
thancock1 opened this issue May 16, 2024 · 0 comments

Comments

@thancock1
Copy link

Sorry if this is a noob question, Have many years of experience with PHP, MySQL, BASH, and PhRETS. Getting started with Spark API, and looking for a basic overview or orientation on how to accomplish the same thing I did with PhRETS. In PhRETS, I had:

1)a script that downloaded listings based on a query into a CSV file
2)a script that produced a 'Create Table' SQL script for storing property data
3)a script that downloaded photo URLS for properties

Looking for code that represents the above. I believe I have a configuration that's at least capable of logging into the Spark API, and accessing MLS data. I can run: "php examples.php" and fetch data, but it all seems to be in a kind of array dump format. How can this data become usable? Suppose I could use grep and sed on the array dump data, but I don't think that's a solution.

Also noticed I'm only getting 10 records at a time, and much of the data is just '*******'

If anyone can point me in the right direction, would be much appreciated. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant