Как извлечь содержимое веб-страницы salesforce, открытой в chrome, с помощью python

#python #html #beautifulsoup

#питон #HTML #прекрасный суп

Вопрос:

Я пытаюсь извлечь HTML-данные из Salesforce, я не получаю никаких ошибок, однако я не могу извлечь полное содержимое веб-страницы, пожалуйста, помогите мне получить HTML-данные из Salesforce.

Мой код таков:

 import requests from bs4 import BeautifulSoup as bs  respond = requests.get(url="https://autodesk.lightning.force.com/lightning/o/Case/list?filterName=00B3g000001DhX7EAK") soup = bs(respond.content, "html.parser") print(soup)  

Выход:

 lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"gt;  lt;htmlgt; lt;headgt; lt;meta content="NO-CACHE" http-equiv="PRAGMA"/gt; lt;scriptgt; function redirectOnLoad() { var escapedHash = ''; var url = '/saml/authn-request.jsp?saml_request_id=_2CAAAAX4ZB3TBMDAwMDAwMDAwMDAwMDAwAAAA6lSQ2EOUKNydjeTcYp9LcveMmuJUIgSZkbFqOo5mFbldeINWfzpMNBBFaiqwNOgJ9SoDbermpcmHMypl5TVu8cKAXZl-DlKlBpLkIZ2puobzkr2c9c1Zo6sG4xEyUiPxRJMvvJEwHUj47bw6UTzH2Y5OrnDHXsLsH6q2OLw1bYq7sF-pWq1tXIr4g4sSlzyOmgHwTxYo_FqmYjIZ_xgqxPVfUtTlvBzbxMxSl6DtXuERQoWik1s210xpLBLslKbfIAamp;saml_acs=https://autodesk.my.salesforce.com?so=00D300000008uILamp;saml_binding_type=HttpRedirectamp;Issuer=https://autodesk.my.salesforce.comamp;samlSsoConfig=0LE3g000000GmaJamp;RelayState=/visualforce/session?url=https%3A%2F%2Fautodesk.lightning.force.com%2Flightning%2Fo%2FCase%2Flist%3FfilterName%3D00B3g000001DhX7EAK'; if (window.location.hash) {  escapedHash = '#'   window.location.hash.slice(1); } if (window.location.replace){  window.location.replace(url   escapedHash); } else { window.location.href = url   escapedHash; }  }  redirectOnLoad(); lt;/scriptgt; lt;/headgt; lt;/htmlgt; lt;!-- Body events --gt; lt;script type="text/javascript"gt;function bodyOnLoad(){if(window.PreferenceBits){window.PreferenceBits.prototype.csrfToken="null";};}function bodyOnBeforeUnload(){}function bodyOnFocus(){}function bodyOnUnload(){}lt;/scriptgt;   lt;!-- ................................................................................................... ................................................................................................... ................................................................................................... ................................................................................................... --gt;   Process finished with exit code 0