what type is,when I use web crawler to download the information from web?
<pre><code>import requests
from bs4 import BeautifulSoup
from pandas import Series,DataFrame

def name1():
    url='''https://www.agoda.com/zh-tw/pages/agoda/default/DestinationSearchResult.aspx?asq=%2bZePx52sg5H8gZw3pGCybdmU7lFjoXS%2ba
    xz%2bUoF4%2bbAw3oLIKgWQqUpZ91GacaGdIGlJ%2bfxiotUg7cHef4W8WIrREFyK%2bHWl%2ftRKlV7J5kUcPb7NK6DnLacMaVs1qlGagsx8liTdosF5by%2
    fmvF3ZvJvZqOWnEqFCm0staf3OvDRiEYy%2bVBJyLXucnzzqZp%2fcBP3%2bKCFNOTA%2br9ARInL665pxj%2fA%2bylTfAGs1qJCjm9nxgYafyEWBFMPjt2s
    g351B&amp;city=18343&amp;cid=1732641&amp;tag=41460a09-3e65-d173-1233-629e2428d88e&amp;gclid=Cj0KEQjwvve_BRDmg9Kt9ufO15EBEiQAKoc6qlyYthgdt9
    CgZ7a6g6yijP42n6DsCUSZXvtfEJdYqiAaAvdW8P8HAQ&amp;tick=636119092231&amp;isdym=true&amp;searchterm=%E5%A2%BE%E4%B8%81&amp;pagetypeid=1&amp;origi
    n=TW&amp;cid=1732641&amp;htmlLanguage=zh-tw&amp;checkIn=2016-10-20&amp;checkOut=2016-10-21&amp;los=1&amp;rooms=1&amp;adults=2&amp;children=0&amp;isFromSearchB
    ox=true&amp;ckuid=1b070b17-86c2-4376-a4f5-d3b98fc9cf45'''
    #æå®ç¶²å
    source_code=requests.get(url)                                         
    #åå¾ç¶²åçsource code
    plain_text=source_code.text                                           
    #æsource codeå­ætext
    soup=BeautifulSoup(plain_text,"lxml")                                        
    #ç¨BSå»è§£ç¢¼
    for a in soup.find_all("h3",{"class":"hotel-name"}):
        print (list(a))
name1()
</code></pre>

<p>I want to sort the data ,craw from Agoda. It seems that I download the many list but a one list. I wonder a list about hotel-name but it has too much things I don't need ex: blank,<code>tag(&lt;h3&gt;...&lt;/h3&gt;)</code>. </p>

<p>Please tell me, how to clean the data downloaded from web with python.</p>

<p>Use <code>.text</code> to get without tags. And <code>.strip()</code> to remove wihtespaces</p>

<pre><code>for a in soup.find_all("h3",{"class":"hotel-name"}):
    print(a.text.strip())
</code></pre>

python python-3.x beautifulsoup web-crawler