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:
<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">$521.<i>67</i></span>&#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