I just start to learn python 3.( I was reading python book and i got questions...)
I have questions to read and find key word from the html source.
I wrote to code for open the url. For example,
page =urllib.request.urlopen(some url)
text = page.read().decode("utf8")
Therefore, I assume that text contain all html code and text is object.
Question 1. I would like to some kind of array or arraylist to store html source code. However, I am not really sure how to get line of code from "text" object and store to some kind of array.
Question 2. Does python have "contain" function to find the special key word like "stack overflow" from the array ?
thanks.