Issue
I have this button in a website:
<a data-page-number="6" data-offset="150" href="website.com/etc.html" class="pageNum taLnk" onclick=" require('common/Radio')('restaurant-filters').emit('paginate', this.getAttribute('data-offset'));; ta.trackEventOnPage('STANDARD_PAGINATION', 'page', '6', 0); return false;
">
6
</a>
The website shows a list, and to move to page list 1,2,3,etc.. you have to click on the above button, the data-offset
is what controls which page list the website is showing.
I want to replicate clicking on this button using requests, is that possible?
Solution
i was able to send the "data-offset" attribute manually by using this code
requests.get('url', params={"data-offset":"2220"}).text
Answered By - Hedi Hadi
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.