Home > other >  BeautifulSoup parsing the url
BeautifulSoup parsing the url

Time:10-04

How to use the BeautifulSoup took out the window. Open the url (https://bbs.csdn.net/topics/392161042? List=lz), the king point

<script> Window. The open (" https://bbs.csdn.net/topics/392161042? List=lz ", "love"); </script>

CodePudding user response:

This is not the BeautifulSoup can do, need the selenium loads and executes js code, generate valid HTML, then BeautifulSoup HTML to analysis

CodePudding user response:

Is not to perform js, parse the string with the script, the Windows. The url string out in the open is ok!
  • Related