Python Forum
change between web pages with python script - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Homework (https://python-forum.io/forum-9.html)
+--- Thread: change between web pages with python script (/thread-13068.html)



change between web pages with python script - vadims - Sep-26-2018

Hello
I need to create script to change from one web page to second web page with python script
the content of 1st web page is Hello world and the 2nd is Hello world i am here!
How to do it?
Tnx


RE: change between web pages with python script - micseydel - Sep-26-2018

What have you tried?


RE: change between web pages with python script - vadims - Sep-27-2018

i dont have any idea how to change it


RE: change between web pages with python script - gruntfutuk - Sep-27-2018

Show us your script for the first web page, and then we can talk about how to switch to the second.


RE: change between web pages with python script - vadims - Sep-30-2018

the problem that i dont know how to create web page with content using python script


RE: change between web pages with python script - buran - Sep-30-2018

There are many web frameworks - big and small
here are some basic tutorials with one of them - flask
https://python-forum.io/Forum-Web-Tutorials


RE: change between web pages with python script - gruntfutuk - Sep-30-2018

You can create a webpage, i.e. html, by just writing strings of html to a text file: If you want your application to actually serve web pages, then you can hand code the work but you would probably be best looking at a framework like Flask (or django for a large application). There are lots of alternatives.

If you want to read an existing website, then take a look at part of the book Automate the Boring Stuff with Python.