Templates for Developing Web Page - python

I am quite new to coding, and have limited experience with HTML and Python. I would like to develop a web page for personal use, and I thought it might be easier to starter with a template and customize it from there. Can anyone recommend a place to find some free templates, or know a good place to start looking?

I learned how with Flask using this tutorial. It's for creating a blog, but you can apply the concepts to other types of websites.
It is time consuming and will feel cumbersome at first, but it teaches you some extra things you need to know if you want the web page to be interactive, store data, etc.

Start Bootstrap is a great starting place! https://startbootstrap.com/ It has free, open source templates that you can use and let you become more comfortable with bootstrap.
Although I do recommend going through W3 tutorials https://www.w3schools.com/html/ and really familiarizing yourself with HTML and CSS if web development is of interest to you.

Related

How to link a python file to an html document

I'm just curious for future reference, how exactly would I link a python program and how would the code be worded to a html document.
Thanks in advance
Here is a list of frameworks you can check out:
https://wiki.python.org/moin/WebFrameworks
I prefer Django but that's just a personal opinion:
https://www.djangoproject.com/
Frameworks make it easier than ever to build applications and websites. Learn python well, learn how the web works, follow a few tutorials (for example the django tutorial) and you are ready to start developing.
Here is how Django works with templates(html):
https://docs.djangoproject.com/en/1.11/intro/tutorial03/
You could use frameworks like django and flask.
i always prefer flask. its simple and light

Using bootstrap for commerical site?

I'm creating a website using django and since im not that strong in html/css (i can code and create layouts, but not the ones that look professional enough) i thought i might use the Bootstrap open source product, originally created by twitter.
Bootstrap is using the Apache License 2.0 as far as i can see and when reading it there does not seem to be any problems using it for commerical perposes...but i still wanted to ask since reading terms and condition isnt something i do every day and im not a lawyer.. can i use bootstrap (http://getbootstrap.com/2.3.2/) for commercial websites ?
Tonnes of sites use it every day, and many of them for commercial purposes. Feel free to use bootstrap for any use you please.
You might want to check the comparison between various licenses here http://choosealicense.com/licenses/. And using twitter-bootstrap is absolutely fine for a commercial website. You can check few websites using bootstrap here in the expo http://expo.getbootstrap.com/

Python's BeautifulSoup as a Web Application?

I wrote a fairly complex script using URLLIB and BeautifulSoup, and last night I wondered if there was any way to produce the same results as a web application.
I'm not asking for a tutorial, but can someone point me in the general direction of how/what proficiency's would be needed to write an application that would let someone input scraping criteria, and a URL, and output the correct source, all in a webpage?
For a basic one page web application, I'd recommend integrating your existing code into one of the available python web micro-frameworks. Try Flask to start; this framework is lightweight and seems ideal for your use-case (another options is bottle, and pyramid and django for larger apps). The tutorials for these frameworks should be enough to get you on the right track.

is there a simple class/library which uses pyQT/webkit to scrape websites with javascript support?

i'm looking at using pyQT to scrape websites with javascript support, after dabbling with all the static html alternatives (beautifulsoup, mechanize etc.)
clearly pyQT is a much more generic tool and as such is not optimised for my needs.
is there any classes/libraries which give me simple functions for using pyQT for relatively simple scraping duties?
i have found a few classes/scripts by searching google, but am hopefull for something better suited to my needs!
i need to submit forms, maintain sessions, and return the html for processing with lxml.
thanks :)
You might want to take a look at spynner--it's a programmatic browser module based on QtWebKit. It might meet your needs.

Starting a web app now which will use python that later this need to embed nicely into a Drupal site?

This week, I want to start a web mapping and data visualization site for my work.
Unfortunately, I just found out my work place will be using Drupal in a few months down the road. (Most of my web development experience is with App Engine.)
My problem is that I need to make sure my web application embeds nicely into the larger Drupal site that outside consultants plan to make.
I am most comfy with Python, and I was expecting to use the Python-Django combo instead. There are important python libraries and modules I must have that cant be found or re-written in PHP.
I was thinking I will avoid all django on the web pages so things dont get confusing when the Drupal switch is made.
I will have the javascript on the web page make calls to python on the server which then spits out JSON data, and I think this will stay the same even after the Drupal switch.
Does this make sense?
Any general or specific suggestions that may guide me are greatly appreciated!
If you write API calls and utilize Drupal Services module, you can hook into just about anything and send/receive JSON/XML data.

Categories