-3

This is the error it is showing:

value error
Traceback (most recent call last).

Code:

url = "www.flipkart.com"
html = urlopen(url)
Martin Evans
  • 45,791
  • 17
  • 81
  • 97
manohar864
  • 47
  • 5
  • 1
    Welcome to Stack Overflow. Please read the [How to ask](https://stackoverflow.com/help/how-to-ask) article as it provides very useful information for newcomers on how to write good questions. – Joey Apr 27 '19 at 16:40
  • 1
    Possible duplicate of [Using Python and BeautifulSoup (saved webpage source codes into a local file)](https://stackoverflow.com/questions/21570780/using-python-and-beautifulsoup-saved-webpage-source-codes-into-a-local-file) – Nazim Kerimbekov Apr 27 '19 at 18:25

1 Answers1

0

The provided code is far from a mcve but I think the problem is that the "www.flipkart.com" is missing the http:// protocol prefix.

Try url = "http://www.flipkart.com".

Trapli
  • 1,517
  • 2
  • 13
  • 19