ImportError: No module named bs4
#31
@Daveabuk You need to understand the difference between byte and textual (Unicode) strings. And it's bad idea to use urllib2 unless you know what you are doing. The requests library is better in all respects, including auto-decoding web-page contents using an appropriate encoding based on pages metadata and HTTP headers.
Reply
#32
Hi Roman. I had a small mistake in my code all along and over complicated it. 

I now have it working, and pulling the correct data in the correct format. The problem I have now is a new textbox is opened for every line, If that makes sense. I'm unsure if the problem lies with Kodi or my script. If you can help in any way?

Eg, 
Data I have scraped:

test1
test2
test3
test4

In Kodi:

Button press, textbox opens, content = "test 1"
If I close the textbox, another textbox automatically opens with content = "test2"

Thank you.
Reply

Logout Mark Read Team Forum Stats Members Help
ImportError: No module named bs40