Data Scraping using Python : I developed a script using python to scrape name of phone from this url "https://www.jumia.com.ng/mobile-phones/"

Here is my script:



from urllib.request import urlopen as uReq

from bs4 import BeautifulSoup as soup

my_url = 'https://www.jumia.com.ng/mobile-phones/' 

uClient =uReq(my_url) #open connection.. grab the page

page_html = uClient.read() #load the content into a varaible

uClient.close()  #close the console



page_soup = soup(page_html, "html.parser") #it does the html parser




phone_name = page_soup.findAll("span",{"class":"name"}) #grabs each phone name

print (phone_name)

My expected result should be something like this: Marathon M5 Mini 5.0-Inch IPS (2GB, 16GB ROM) Android 5.1 Lollipop, 13MP + 8MP Smartphone - Grey but what I get is this : <span class="name" dir="ltr">Marathon M5 Mini 5.0-Inch IPS (2GB, 16GB ROM) Android 5.1 Lollipop, 13MP + 8MP Smartphone - Grey</span>.

How do I extract the text from this <span class="name" dir="ltr">Marathon M5 Mini 5.0-Inch IPS (2GB, 16GB ROM) Android 5.1 Lollipop, 13MP + 8MP Smartphone - Grey</span>

Regards 