Get JS Generated HTML Code with Selenium Python

Publié le: 13 avril 2021
sur la chaîne: Noob Coding and Gaming
2,556
15

I was working on a web scraping project using Beautifulsoup and the Requests modules. Imagine I was trying to get a YouTube video URL. Beautifulsoup wasn´t finding it. So, it turns out I was getting the site´s base HTML code, but when a browser opens the site, some more HTML code is dynamically generated by JS. So today we´re gonna learn how to get this code using only the powerful Selenium module.

GitHub: https://github.com/Hu-Bots/get_JS_html

Download Webdriver: https://selenium-python.readthedocs.i...

.find_element_by documentation: https://selenium-python.readthedocs.i...


Sur cette page du site, vous pouvez voir la vidéo en ligne Get JS Generated HTML Code with Selenium Python durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Noob Coding and Gaming 13 avril 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 2,556 fois et il a aimé 15 téléspectateurs. Bon visionnage!