Why this code show error? In Python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Why this code show error? In Python

How can I get rid from this? https://code.sololearn.com/c0BT7v1ceSc6/?ref=app

3rd Nov 2020, 9:31 AM
Yogeshwaran P
Yogeshwaran P - avatar
5 Answers
0
import subprocess as sp import sys sp.call([sys.executable, '-m', 'pip', '--disable-pip-version-check', '-q', 'install', 'requests']) import requests as r print(r.get('https://www.google.com').text[:50]) print('\n\n') from urllib.request import urlopen as u print(u('https://www.google.com').read()[:50].decode()) https://code.sololearn.com/cPi04fcE16cu/?ref=app btw, giving up on C already?
3rd Nov 2020, 10:13 AM
Flash
+ 2
By installing the requests module ,best would be to use a real ide like pydroiid for android or termux (like terminal for Android) or visual studio and others ones for windows
3rd Nov 2020, 9:36 AM
Abhay
Abhay - avatar
+ 1
No Flash😅,I just try to know the web scraping technique in python ..... And thanks for yours answer....
3rd Nov 2020, 10:20 AM
Yogeshwaran P
Yogeshwaran P - avatar
+ 1
Yogeshwaran no worries
3rd Nov 2020, 10:22 AM
Flash
+ 1
Ok Flash 😊😁
3rd Nov 2020, 10:23 AM
Yogeshwaran P
Yogeshwaran P - avatar