Created
October 16, 2023 18:33
-
-
Save itrewm/3594d70a1df6f287deb6aeefceb53c1b to your computer and use it in GitHub Desktop.
free tether to toman api | ای پی آی تبدیل تتر به تومان
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
from bs4 import BeautifulSoup | |
url = 'https://wallex.ir/calculator/usdt-tmn' | |
response = requests.get(url) | |
response.raise_for_status() | |
html = response.text | |
soup = BeautifulSoup(html, 'html.parser') | |
elements = soup.find_all('p', class_='MuiTypography-root MuiTypography-body2 mui-mmyoxq') | |
value = elements[2].find('span').text | |
print(value) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment