Python Forum

Full Version: Help with Python and HTML code
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi everyone,

    I'm starting to work with Python and I have a problem ... I need to modify a html code parameter of a web-page; I need to read the html code, then identify what to replace and finally replace and upfate the web with this change for me.

    I understand that, when I upload again the web, it return to the default configuration of the web-page... Its ok, becouse this is just for my navigation.

Is it possible to do this?.

Please, your advice and help, thank you.

Regards
Karlo
Do you mean change the site via javascript?
Thank for you answer Metulburr.

I need to customize the public web page, but instead of doing it manually (see video), I want to do it by Python code... any way or library in Python to help?

Video - example: https://www.youtube.com/watch?v=aiB6__jGblo

Regards
Karlo
Your going to end up doing it manually multiple times for one instance of being correct just by testing alone.

You would basically be executing javascript. To do that in python, you can use selenium to bring up a browser and change the HTML for that session via javascript.
Thank for you new answer Metulburr.

With your indications and the search in google, I can to solve now the problem Smile.