Python Forum
change between web pages with python script
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
change between web pages with python script
#1
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
Reply
#2
What have you tried?
Reply
#3
i dont have any idea how to change it
Reply
#4
Show us your script for the first web page, and then we can talk about how to switch to the second.
I am trying to help you, really, even if it doesn't always seem that way
Reply
#5
the problem that i dont know how to create web page with content using python script
Reply
#6
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
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#7
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.
I am trying to help you, really, even if it doesn't always seem that way
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Re-write BASH script to Python script popi75 5 2,364 Apr-30-2021, 03:52 PM
Last Post: metulburr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020