[Note] Export the html of the site with python.

Memorandum code

stack


import urllib2

if __name__ == "__main__":
	url = "http://fantmsite.com"

	htmldata = urllib2.urlopen(url)
	print unicode(htmldata.read(),"utf-8")

	htmldata.close(s)


Recommended Posts

[Note] Export the html of the site with python.
Check the existence of the file with python
Python Note: The secret role of commas
Output the contents of ~ .xlsx in the folder to HTML with Python
Note: Prepare the environment of CmdStanPy with docker
Prepare the execution environment of Python3 with Docker
2016 The University of Tokyo Mathematics Solved with Python
Calculate the total number of combinations with python
the zen of Python
Check the date of the flag duty with Python
A note about the python version of python virtualenv
[Note] About the role of underscore "_" in Python
Convert the character code of the file with Python3
[Python] Determine the type of iris with SVM
Note: How to get the last day of the month with python (added the first day of the month)
Extract the table of image files with OneDrive & Python
Learn Nim with Python (from the beginning of the year).
Destroy the intermediate expression of the sweep method with Python
Visualize the range of interpolation and extrapolation with python
Calculate the regression coefficient of simple regression analysis with python
Summary of the basic flow of machine learning with Python
The definitive edition of python scraping! (Target site: BicCamera)
Get the operation status of JR West with Python
Note calling the CUDA Driver API with Python ctypes
Extract the band information of raster data with python
Completely translated the site of "The Hitchhiker's Guide to Python"
Python Note: The mystery of assigning a variable to a variable
[Python] Let's change the URL of the Django administrator site
Towards the retirement of Python2
About the ease of Python
[Note] Operate MongoDB with Python
Call the API with python3.
About the features of Python
The Power of Pandas: Python
Try scraping the data of COVID-19 in Tokyo with Python
I tried "gamma correction" of the image with Python + OpenCV
The story of implementing the popular Facebook Messenger Bot with python
Unify the environment of the Python development team starting with Poetry
Visualize the results of decision trees performed with Python scikit-learn
Calculate the square root of 2 in millions of digits with python
I wrote the basic grammar of Python with Jupyter Lab
Tank game made with python About the behavior of tanks
Run the intellisense of your own python library with VScode.
I evaluated the strategy of stock system trading with Python.
Check the scope of local variables with the Python locals function.
Let's touch the API of Netatmo Weather Station with Python. #Python #Netatmo
[Note] Import of a file in the parent directory in Python
The story of rubyist struggling with python :: Dict data with pycall
[Homology] Count the number of holes in data with Python
Try to automate the operation of network devices with Python
Rewrite the record addition node of SPSS Modeler with Python.
Estimate the attitude of AR markers with Python + OpenCV + drone
The highlight of REST + Normal Site construction with Flask, Eve
Play with the password mechanism of GitHub Webhook and Python
Get the source of the page to load infinitely with python.
Return the image data with Flask of Python and draw it to the canvas element of HTML
Extract the xz file with python
The story of Python and the story of NaN
[Python] The stumbling block of import
First Python 3 ~ The beginning of repetition ~
Existence from the viewpoint of Python