خرید بک لینک

Vote count: 0

So I have this text:

 '
 Location
 Address

 Number

 Website
'

Except the top and bottom lines are empty as well, there aren't single quotes on those two lines. I basically want to make sure each line is one after another without any line breaks. This is what I would like it to look like.

 Location
 Address
 Number
 Website

I want to strip all of the line breaks and just have each result one line after another. This is the code to scrape the information from a webpage.

results = soup.findAll('div', class_='name')
for each in results:
    worksheet.write(row,1,each.text)
    row += 1

Each time I run through this, I want the results to print one line after another. Thanks.

asked 4 mins ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 16 ارديبهشت 1395 ساعت: 22:50

صفحه بندی