J
J
jokejoy2020-02-27 12:23:44
PHP
jokejoy, 2020-02-27 12:23:44

How to parse an element along with its styles using phpQuery?

Hello! For the first time I am writing a site parser on phpQuery and I ran into a problem - I can’t pull out a specific element along with styles. First of all, the task is to get pictures from the background element.
The site I want to spar from: https://grastin.ru/samovyvz/moscow.html
The necessary dements are icons with fitting and payment by cards: 5e578a49ea5c6421562946.png
They have something like this code:

.pickup_address_services_fitting {
    display: inline-block;
    vertical-align: top;
    background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAYCAMAAAC/Wk/yAAAAjVBMV…AvhhC++Y6JixC1AP5fuP7zjdXc/xOlIidT7tv7Prwjox8sEA/8J2OSBgAAAABJRU5ErkJggg==) no-repeat 50% 0;
    padding: 24px 0 0;
    margin: 0 10px 0 0;
    min-width: 40px;
}

Please help, how can this be done in phpQuery?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question