E
E
Evstolyan2021-10-17 21:03:35
Python
Evstolyan, 2021-10-17 21:03:35

How to get the full phone number in an ad on Avito?

Hello! There is a page on Avito from which you need to parse the full phone number. How can this be implemented? Tried with requests but didn't work. Selenium can be used as an option but not recommended as I need to parse a decent amount of pages and with browser automation it will take a lot of time. Block "Show phone":

<div class="item-actions-line">
    <div class="item-phone js-item-phone" data-disabled="">
        <div class="item-phone-number js-item-phone-number greenContact_color ">
            <a class="button item-phone-button js-item-phone-button button-origin contactBar_greenColor button-origin_full-width button-origin_large-extra item-phone-button_hide-phone item-phone-button_card js-item-phone-button_card contactBar_height"
               href="#login?authsrc=ps" data-marker="item-phone-button/card" data-side="card" data-privet="privet">
                Показать телефон
                <span class="item-phone-button-sub-text">8 958 XXX-XX-XX</span>

            </a>

        </div>

    </div>
</div>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
galaxy, 2021-10-17
@Evstolyan

And now they have numbers, not only are they loaded via AJAX on click, they also come in the form of data/png pictures

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question