Comments (7)
Can you send me a screenshot or snippet of the error? Nevertheless, transfer closed with xxx bytes remaining to read
is a curl error. I don't think anything is wrong with the code. It's working locally and on the development server I setup.
from dubizzle-php.
I made a tweak to the code. Update the package using composer update.
from dubizzle-php.
Thank you..
I have another issue if you can figure out. The result count on dubizzle and by fetching our API is different.
For Example:
https://dubai.dubizzle.com/motors/used-cars/audi/a4/?year__gte=2005&year__lte=2005&body_type=348
IF you check the above link you will see around 5 records but when we fetch via our code below we get 2-3 records why is it not fetching the complete list. can you make an example for this Make/Model/Year/Type.
$params = array(
"country" => 'all',
"city" => 'all',
"section" => 'motors',
"category" => 'cars',
"make" => 'audi',
"model" => '1187', //A4
"body_type"=>'348', //Sedan
"min_year" => '2005',
"max_year" => '2005',
"num_results" => 'all');
$uae_dubizzle = new Search($params);
//Rest you know the code
Help would be appreciated.
from dubizzle-php.
I will update the code shortly. Apparently, the reason why you are seeing 3 results instead of 5 is because of the ads posted param is set to within a month instead of any time.
In addition, you can use $uae_dubizzle->query_url()
to get the exact url to visit and see the results via browser.
from dubizzle-php.
If you put 'added_days' => ''
, it should work. I checked the code and realized that added_days
is set to 30. As a result, only ads that were post within 30 days will be showed. I'm going to set the default to "", which means any time.
from dubizzle-php.
Thanks for the update.
But still facing an issue.
Above dubizzle show 1 record and our compiler zero.. Is it that if you get more than one record then only compiler works? Please help me have tested i am not getting singular records only
My code to fetch
$params = array(
"country" => 'uae',
"city" => 'all',
"section" => 'motors',
"category" => 'cars',
"make" => 'chevrolet',
"model" => '1239', //Corvette
"body_type"=>'347', //Coupe
"min_year" => '2011',
"max_year" => '2011',
"num_results" => '100',
"added_days"=>'');
$uae_dubizzle = new Search($params);
from dubizzle-php.
Apparently, dubizzle had a featured item tag that wasn't captured by the api. I added the capturing of featured items.
from dubizzle-php.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dubizzle-php.