Trying to import .txt keeps on giving error

https://www.kaggle.com/scratchpad/notebookd0accb7d69/edit

I tried to import the file for the temperature it showed the same error while i did it locally then I tried it in different other platform which showed same error but while searching online all i should get was to import all request the library for urllib or some socket thing. Could anyone please help me with it.

what do you think what’s the error here.
import urllib.request
urllib.request.urlretrieve(
https://hub.jovian.ml/wp-content/uploads/2020/08/climate.csv’,
‘climate1.csv’)

Since it’s kaggle: turn the internet on in the notebook.

how do turn on internet for notebook? What to do if there is same problem locally?

What is the error you are getting? Can you share the part of your code where you are facing the error?

In case of doing it locally, you probably use jupyter notebook which doesn’t have such feature, and the internet is available immediately.
Do as @birajde said and share the error/lines that cause it.

code:
from urllib import *
urllib.request.urlretrieve(‘https://hub.jovian.ml/wp-content/uploads/2020/08/climate.csv’,'climate.txt’)

error:
Traceback (most recent call last)
c:\users\unknown somebody\appdata\local\programs\python\python37-32\lib\urllib\request.py in do_open(self, http_class, req, **http_conn_args)
1316 h.request(req.get_method(), req.selector, req.data, headers,
-> 1317 encode_chunked=req.has_header(‘Transfer-encoding’))
1318 except OSError as err: # timeout error

c:\users\unknown somebody\appdata\local\programs\python\python37-32\lib\http\client.py in request(self, method, url, body, headers, encode_chunked)
1228 “”“Send a complete request to the server.”""
-> 1229 self._send_request(method, url, body, headers, encode_chunked)
1230

c:\users\unknown somebody\appdata\local\programs\python\python37-32\lib\http\client.py in _send_request(self, method, url, body, headers, encode_chunked)
1274 body = _encode(body, ‘body’)
-> 1275 self.endheaders(body, encode_chunked=encode_chunked)
1276

c:\users\unknown somebody\appdata\local\programs\python\python37-32\lib\http\client.py in endheaders(self, message_body, encode_chunked)
1223 raise CannotSendHeader()
-> 1224 self._send_output(message_body, encode_chunked=encode_chunked)
1225

c:\users\unknown somebody\appdata\local\programs\python\python37-32\lib\http\client.py in _send_output(self, message_body, encode_chunked)
1015 del self._buffer[:]
-> 1016 self.send(msg)
1017

c:\users\unknown somebody\appdata\local\programs\python\python37-32\lib\http\client.py in send(self, data)
955 if self.auto_open:
–> 956 self.connect()
957 else:

c:\users\unknown somebody\appdata\local\programs\python\python37-32\lib\http\client.py in connect(self)
1383
-> 1384 super().connect()
1385

c:\users\unknown somebody\appdata\local\programs\python\python37-32\lib\http\client.py in connect(self)
927 self.sock = self._create_connection(
–> 928 (self.host,self.port), self.timeout, self.source_address)
929 self.sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)

c:\users\unknown somebody\appdata\local\programs\python\python37-32\lib\socket.py in create_connection(address, timeout, source_address)
706 err = None
–> 707 for res in getaddrinfo(host, port, 0, SOCK_STREAM):
708 af, socktype, proto, canonname, sa = res

Well it seems the url you are providing is not the correct url.