V
V
Vladimir2016-03-10 14:20:50
PHP
Vladimir, 2016-03-10 14:20:50

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

3 answer(s)
D
Dimonchik, 2016-03-10
@dimonchik2013

php.net/manual/ru/function.file-get-contents.php
or
freelansim.ru

V
Vladimir, 2016-03-10
Khatter

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
(
)

Q
qazomardok, 2016-03-23
@qazomardok

Maybe this thing will come in handy: feed43.com

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question