Pinterest's board is a page with 25 diagrams, which is loaded when scrolling. How to use python to get all the paging information?

for example: https://www.pinterest.co.uk/a.

I want to get all the original images in this board, which can be easily found in the code.

<img alt=" SO JI SUB  OSTGhost - We Were Both In Love " class="_u3 _45 _y7 _4h" src="https://img.codeshelper.com/upload/img/2021/07/07/herxp05iooe106.jpg" srcset="https://img.codeshelper.com/upload/img/2021/07/07/herxp05iooe106.jpg 1x, https://img.codeshelper.com/upload/img/2021/07/07/42hvvgsvdvl107.jpg 2x, https://img.codeshelper.com/upload/img/2021/07/07/atvnp2faxab108.jpg 3x, https://img.codeshelper.com/upload/img/2021/07/07/hqk101pdl3u109.jpg 4x">

the picture with a 4x ending is the one I want.

but the page is generated by javascript. The initial js code only contains information about 25 images. I don"t know how the later images are loaded. It seems to be obtained by some of the following requests. Each request is accompanied by a lot of parameters, and the wrong parameters can not get a result.

https://www.pinterest.co.uk/resource/BoardFeedResource/get/?

so how can I use python to get all the pictures in a board?

Thank you.

Jul.07,2021
Menu