Answer the question
In order to leave comments, you need to log in
How to parse links through site search?
Good day, Dear GURU!
In general, the task is this:
I am doing a campaign for YandexDirect by articles (~ 15,000 keys), you need to pull links to products from the site (by these articles).
The only thing that comes to mind is:
do a search like http://site.ru/search/?q={articul}
if there is a result, then add it to the array
, otherwise add _ The
question is, how to implement this?!
________________________________________________________________________
What am I doing wrong?
<?php
include 'library/simple_html_dom.php';
$html = file_get_html('dom-decora.ru/search/?q=arte+lamp+a1203pl-3cc+praktisch');
print_r($html->find('div'));
________________________________________________________________________
Returns:
Array
(
)
Answer the question
In order to leave comments, you need to log in
php.net/manual/ru/function.file-get-contents.php
or
freelansim.ru
What am I doing wrong?!
<?php
include 'library/simple_html_dom.php';
$html = file_get_html('dom-decora.ru/search/?q=arte+lamp+a1203pl-3cc+praktisch');
print_r($html->find('div'));
________________________________________________________________________
Returns:
Array
(
)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question