I would like to scrape a webpage using BeautifulSoup and requests. The below code works, but I do not get the full div back.
import requests
cert = (certs['cert'], certs['password'])
r = requests.get(url,
cert=(certs['cert'], certs['password']),
verify=certs['CA_file'])
For r.text I get
...... <div id=\'App\'></div>\r\n <script type="text/javascript" src="/bundle.js"></script></body>\r\n</html>\r\n'
but I would like to have the html code in <div id=\'App\'></div>
but it does not show.
I tried some different headers but they also did not work. Can this be done with BeautifulSoup (i would prefer to not use selenium as it gets way too complicated with the credentials). I need to use microsoft Edge.
Is there anything I can do to get the full html code in the div?