Anusha
Anusha

Reputation: 1

How to convert current webpage to a text file?

I have created one plugin and we need current webpage in the form of plain text file so that we can use that text file as an input to the plugin .How do I do it??

Upvotes: 0

Views: 682

Answers (1)

tekknolagi
tekknolagi

Reputation: 11022

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

Upvotes: 1

Related Questions