a = 2
f = 5
if (a < 0 ) or (f < 0):
print('123')
a = 2
f = 5
if (a > 0 ) or (f > 0):
print('123')
#!/usr/bin/env python3
import requests
from bs4 import BeautifulSoup
html = '<div class="dots-item"><a href="/index.php?r=crop/harvest&id=12245218"><img alt="Z" height="50" src="https://static/light/crops/gas_station.png" width="50"/></a><a href="/index.php?r=crop/harvest&id=12245218"><img alt="Harvest" class="crop_ico" src="https://static/i/../light/dots/st/dot-st-ready.png"/></a></div>'
soup = BeautifulSoup(html, 'html.parser')
href = soup.find('div', attrs = {'class':'dots-item'}).find('a').get('href')
print(href)
#!/usr/bin/env python3
import requests
from bs4 import BeautifulSoup
html = '<span class="content"><div class="ng-star-inserted">2 390,00 r</div></span>'
soup = BeautifulSoup(html, 'html.parser')
cash = soup.find('span', attrs = {'class':'content'}).find('div', attrs = {'class':'ng-star-inserted'}).get_text().strip()
print(cash)