I want to get the full page with all the show-more content, but the website is protected by Cloudflare, so I decided to do this:
<code>import cloudscraper
response = cloudscraper.create_scraper().get('https://kontramarka.ua/uk')
print(response.status_code)
</code>
<code>import cloudscraper
response = cloudscraper.create_scraper().get('https://kontramarka.ua/uk')
print(response.status_code)
</code>
import cloudscraper
response = cloudscraper.create_scraper().get('https://kontramarka.ua/uk')
print(response.status_code)
But how to click show-more-btn (below)
<code><a class="show-more-btn more-events" href="#">
<svg class="svg-icon finger">
<use xlink:href="/themes/kontramarka_2017/img/sprite.svg#finger"></use>
</svg>
<span>
Show more </span>
</a>
</code>
<code><a class="show-more-btn more-events" href="#">
<svg class="svg-icon finger">
<use xlink:href="/themes/kontramarka_2017/img/sprite.svg#finger"></use>
</svg>
<span>
Show more </span>
</a>
</code>
<a class="show-more-btn more-events" href="#">
<svg class="svg-icon finger">
<use xlink:href="/themes/kontramarka_2017/img/sprite.svg#finger"></use>
</svg>
<span>
Show more </span>
</a>
I tried to do this with selenium but it didn’t click the button (it was found)
P.S. I also tried to use network-headers etc.
New contributor
LastSurvivalOn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1