Parse HTML is required
[ <div style="width: 40%;/* float: left; */">2.19</div>, <div style="width: 40%;/* float: left; */">2.49</div>, <divstyle="width: 40%;/* float: left; */">2.59</div>, <div style="width: 40%;/* float: left; */">2.64</div>, <div style="width: 40%;/* float: left; */">2.43</div>, <div style="width: 40%;/* float: left; */">2.63</div>, <div style="width: 40%;/* float: left; */">2.58</div>, <div style="width: 40%;/* float: left; */">2.39</div>, <div style="width: 40%;/* float: left; */">2.49</div>, <div style="width: 40%;/* float: left; */">2.36</div>, <div style="width:40%;/* float: left; */">2.41</div>, <div style="width: 40%;/* float: left; */">2.59</div> ] So, to get values between divs (2.19 [...] 2.49)
UPD: Added code for loading HTML page.
Bringing the code to simplicity comes out like this
from bs4 import BeautifulSoup import requests r = requests.get('https://taripebi.ge/%E1%83%91%E1%83%94%E1%83%9C%E1%83%96%E1%83%98%E1%83%9C%E1%83%98%E1%83%A1-%E1%83%A4%E1%83%90%E1%83%A1%E1%83%94%E1%83%91%E1%83%98') scraping_html = BeautifulSoup(r.text, 'html.parser') find_by_attr = scraping_html.find_all('div', attrs={'style':'width: 40%;/* float: left; */'}) print(find_by_attr)
.textat the end of thefind_all()call. How here - Sergey Nudnov