samedi 31 mars 2018

DOMDocument doesn't grab prices by country

Laravel 5.4

I use DOMDocument for grabbing prices from the gearbest.com. In Lithuania country the gearbest shows lower products price, than original ones.

In website page I see price 428.17Eur:

<span class="my_shop_price new_shop_price ajax-price-main" data-key="705268#37" data-shopprice="521.67" data-orgp="521.67" id="unit_price" style="visibility: visible;">€428.<i>17</i></span>

But from DomDocument I get 521.67 Eur price:

&lt;span class=&quot;my_shop_price new_shop_price ajax-price-main&quot; data-key=&quot;705268#37&quot; data-shopprice=&quot;521.67&quot; data-orgp=&quot;521.67&quot; id=&quot;unit_price&quot;&gt;$521.&lt;i&gt;67&lt;/i&gt;&lt;/span&gt;&amp;#xD;<span class=sf-dump-default>\n</span>

I rent server in Lithuania.

Maybe need send country code in header? I don't know. Please help me.



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2GYFOK1
via IFTTT

Aucun commentaire:

Enregistrer un commentaire