Python Forum

Full Version: Not able to retrieve the value
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
I am beginner in webscrapping. I succeeded in getting the desired content from some of the websites but from

https://www.skrill.com/en/transfer-money/

I want to retrieve the currency conversion rate value. For eg. 1 euro = 1.77 AUD.

My code:
import requests
from bs4 import BeautifulSoup

url =  'https://https://www.skrill.com/en/transfer-money//'

headers = {"User-Agent": 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36'}

page = requests.get(url, headers=headers)

soup = BeautifulSoup(page.content, 'html.parser')

#euro_aud = soup.findAll('div')
#skrill

div = soup.find_all('div')
print (div)
euro_aud = soup.find_all(class_ =  'amount__input ng-pristine ng-valid ng-touched', name = 'amount')
print(euro_aud)
My Output:
Output:
[]
Kindly help me what went wrong. Why am I not able to get the value.

Thanks in advance

VK