开发者

How to convert current webpage to a text file?

开发者 https://www.devze.com 2023-02-15 09:31 出处:网络
I have created one plugin and we need currentwebpage in t开发者_JAVA百科he form ofplain text file so that we can use that text file as an input to the plugin .How do I do it??import urllib

I have created one plugin and we need current webpage in t开发者_JAVA百科he form of plain text file so that we can use that text file as an input to the plugin .How do I do it??


import urllib
url = "http://google.com"
text = urllib.open(url)
0

精彩评论

暂无评论...
验证码 换一张
取 消