How to fix this "urllib.error.URLError: <urlopen error no host given>" ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to fix this "urllib.error.URLError: <urlopen error no host given>" ?

Hi, I tryed to make a programme that can collect user informations from sololearn profile link.Suppose you entered https://www.sololearn.com/Profile/20905876/?ref=app (my profile link), then it will be print my name, followers, country, avater etc. And this programme run perfectly most of the time. But in case of some profile links it shows "urllib.error.URLError: <urlopen error no host given>". How can I fix it. And another question is, if I make the code public, will my Id be banned? (If I can be ban, then I will delete it.) thank you. https://code.sololearn.com/cxgt59SlY440/?ref=app

31st Aug 2021, 12:51 AM
Fꫀⲅძ᥆͟ᥙ᥉᯽
Fꫀⲅძ᥆͟ᥙ᥉᯽ - avatar
3 Answers
0
✩✮★✮✩ Thank you very much 🥰🥰🥰
31st Aug 2021, 7:49 AM
Fꫀⲅძ᥆͟ᥙ᥉᯽
Fꫀⲅძ᥆͟ᥙ᥉᯽ - avatar
0
✩✮★✮✩ if i make the code public, will i banned?
31st Aug 2021, 11:04 AM
Fꫀⲅძ᥆͟ᥙ᥉᯽
Fꫀⲅძ᥆͟ᥙ᥉᯽ - avatar
0
❤️❤️
31st Aug 2021, 1:02 PM
Fꫀⲅძ᥆͟ᥙ᥉᯽
Fꫀⲅძ᥆͟ᥙ᥉᯽ - avatar