Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not able to retrieve the value
#1
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
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020