GithubHelp home page GithubHelp logo

Comments (7)

b4oshany avatar b4oshany commented on June 17, 2024

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.

b4oshany avatar b4oshany commented on June 17, 2024

I made a tweak to the code. Update the package using composer update.

from dubizzle-php.

developer4ATIT avatar developer4ATIT commented on June 17, 2024

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.

b4oshany avatar b4oshany commented on June 17, 2024

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.
dubizzle dubai - motors and cars classifieds in dubai uae 2015-11-03 10-30-20

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.

b4oshany avatar b4oshany commented on June 17, 2024

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.

developer4ATIT avatar developer4ATIT commented on June 17, 2024

Thanks for the update.

But still facing an issue.

Check this link from dubizzle
https://uae.dubizzle.com/motors/used-cars/chevrolet/corvette/?site=--&s=MT&rc=140&c1=1235&c2=1239&price__gte=&price__lte=&year__gte=2011&year__lte=2011&kilometers__gte=&kilometers__lte=&seller_type=&keywords=&is_basic_search_widget=0&is_search=1&added__gte=&auto_agent=&body_type=347

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.

b4oshany avatar b4oshany commented on June 17, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.