Naas Documentation
Naas.ai
GitHub
Slack Community
What's new?
Search…
Welcome to Naas
😎
Templates
AWS
Airtable
AlphaVantage
Bazimo
Boursorama
Bubble
CCXT
CSV
Canny
Celestrak
Cityfalcon
D-Tale
Dask
Data.gouv.fr
Draft Kings
EM-DAT
Elasticsearch
Excel
FAO
FEC
FTP
GitHub
Gmail
Google Analytics
Google Drive
Google Search
Google Sheets
HTML
Create a website
Healthchecks
HubSpot
Hugging Face
IFTTT
IMDB
INPI
IUCN
Insee
Instagram
Integromat
Johns Hopkins
Jupyter
Jupyter Notebooks
LinkedIn
Matplotlib
Metrics Store
Microsoft Teams
Microsoft Word
MongoDB
MySQL
NASA
Naas
Naas Auth
Neo
Newsapi
Notion
OpenWeatherMap
OwnCloud
PDF
Pandas
Pillow
Pipedrive
Plaid
Plotly
PostgresSQL
PyPI
Python
Qonto
Quandl
Reddit
Redshift
Remoteok
Remotive
SAP-HANA
SendGrid
Slack
Snowflake
Societe.com
Spotify
Streamlit
Stripe
Telegram
Thinkific
TikTok
Trello
Twilio
Twitter
WSR
WorldBank
Worldometer
XML
YahooFinance
YouTube
Youtube
ZIP
Zapier
spaCy
Google Analytics
Google Drive
Google Search
Google Sheets
Hugging Face
Johns Hopkins
Jupyter Notebooks
Metrics Store
Microsoft Teams
Microsoft Word
Naas Auth
Elastic Search
Excel 365
🔄
Low-code features
🏎
Low-code drivers
🌎
Community
Essentials
Advanced
Best Practices
FAQ
⚡
Naas manager
🔐
Security
Powered By
GitBook
Create a website
Tags:
#html #css #website #page #landing #custom #snippet
Author:
Jeremy Ravenel
The objective of this notebook is to create an end-to-end website in 5min.
Input
Import libraries
1
from
urllib
.
request
import
urlopen
2
from
IPython
.
display
import
IFrame
3
import
naas
Copied!
Model
Get example
1
html
=
urlopen
(
"http://www.example.com/"
).
read
().
decode
(
'utf-8'
)
2
print
(
html
)
Copied!
Save file on your file system
Click right to open + edit the file downloaded
1
html_file
=
open
(
"site.html"
,
"w"
)
2
html_file
.
write
(
html
)
3
html_file
.
close
()
Copied!
Learn about HTML with this Cheat Sheet
1
IFrame
(
"https://web.stanford.edu/group/csp/cs21/htmlcheatsheet.pdf"
,
width
=
900
,
height
=
600
)
Copied!
Manually change the content of the file to make it your own.
Use Google search to go further in the customization (I recommend using https://stackoverflow.com/ + https://www.w3schools.com/html/)
Output
Use Naas asset formula to generate a shareable URL.
1
naas
.
asset
.
add
(
"site.html"
,{
"inline"
:
True
})
Copied!
Nb: if you want to use your own domain name, we will cover that in another version of this template. Contact us →
[email protected]
Previous
HTML
Next
Healthchecks
Last modified
2mo ago
Copy link
Edit on GitHub
Contents
Input
Model
Output