E
E
Elick2020-08-20 01:50:18
Parsing
Elick, 2020-08-20 01:50:18

Parsing a site through requests and bs4, how to expand the table for pars?

5f3daacd5ce20758427785.jpeg

There is a website 777score.ru. The screenshot shows a table on this site (20 lines), below it is a button that adds 20 more lines to this table, after clicking it, one is added to the data-iteration parameter. I need to make sure that when parsing a page, a certain number of lines are opened (not just 20), tell me how to do this.
PS. the link to the page does not change in any way when the button is clicked, and at the moment I cannot parse more than 20 rows from this table, using Python 3

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
byrew rewen, 2020-08-20
@Elick

when visiting the site, I can’t display the page like yours, which means that the question is not much incorrect. Correct the address of visiting the page so that people can help you.
When the button is clicked, the function built into the site is executed, the js function that sends the given POST request with json data.
Option 1 - easy, switch to selenium
Option 2 - a more thorny path, examine the request, create an analogue of the headers, and try to send it in the session, without interrupting the connection.
5f3e207446ef3979170737.jpeg

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question