[ad_1]
Here I show you how to interact with the internet using Python. This also completes all of the concepts behind the automation of website posting and scraping. Code is Here
Python 2.7 Tutorial Pt 17
by
Comments
14 responses to “Python 2.7 Tutorial Pt 17”
-
How long did akeyou to master all these languages?
-
What errors are you seeing?
-
Yeah I took it from there. I even tested it in eclipse works fine. Prints all the html code and stuff. However when I put it in the htdocs folder in xampp and try to access it from localhost it just shows the python source code.
-
Did you get the code from my site. There is a link to it in thee description for this video
-
It just prints the source code on the screen what am I doing wrong? 🙁
-
I have done exactly this, it took me a while though. I have a video of what I made , its a application that takes your input and creates a website with it. Check it out and tell me what you think 🙂
/watch?v=4goIV265tkA -
You could save the information to a database or even a simple text file. I don't know if Python would be the best language for this though. Many hosting companies seem to hate Python. It might be better for you to learn PHP or Java. I have tutorials on both that show you how to do what you want
-
I'm working on a project in which I have to transfer input from a GUI to a html file. How would I do that?
-
@derekbanas Love the VIDEOs! One of the best channels and sites I've found yet! But I know you used a very simple database SQLite will you be creating a tutorial on Django a python framework connecting to maybe MySQL or PostgreSQL? To help use further understand how it all meshes and connects with one another? Would be GREAT! Again thanks! Subscribed and forever followed!
-
@derekbanas Sort of. How about on the client side, how I would I formulate the line that calls the python file and sends it the POST data? In addition, does it matter to include formData = cgi.FieldStorage() (trying to keep code as lean as possible) Thanks for your help. Very much appreciated.
-
@dawgp0und Use the POST method and then in your python code do this:
import cgi
formData = cgi.FieldStorage()
emailAdd = form["email"]# All the form data is available by referencing the name you assigned it in your
html codeDoes that Make sense?
-
This is exactly what I was looking for. I'm wondering if there is a way to have a Python file to act as the server file in an AJAX html page. If so, how do you send data to the server (GET or POST methods?). Another beautiful tutorial. Thumbs Up!
-
@MultiComputerScience You're welcome
-
Thanks, mate!
Leave a Reply