Im scraping repo's names from Github like:
repositorys = []
for ulr in user_repo_url: # in this list I have url like ('https://github.com/USER/?tab=repositories)
source = urllib.request.urlopen(url).read()
soup = bs.BeautifulSoup(source,'lxml')
repos = [repo.text for repo in soup.find_all('div',class_='d-inline-block mb-1')]
repositorys.append(repos)
return render(request,'file.html',{'repositorys':repositorys})
Im using Django and everything works, but insted of getting clear text I get name and '\n' symbols. I was trying using strip and map function but they didn't work. Do you have any other suggestions why doesn't it work?