Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Need to show values from one html to another

 
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Everyone,

I am trying to acheive below requirement.
Where I need to get one value(changes frequently) from one webpage so that I need to show that value in another webpage.
For example from test1.com there is a value called 90, which i need to pull from there and need to display in test2.com

Realtime example: www.xe.com here we are having currency rates, where i need to pull one USD to INR price and need to display it in my page.

Regards,
Kartik
 
Saloon Keeper
Posts: 13483
304
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Scraping a website is a bad idea, because it's slow and a change to the site can break your application. Instead, you should see if there is an API available.

If I Google for "Free exchange rate API" I already find a promising candidate.
 
Ranch Hand
Posts: 94
2
Python Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Primarily, there are many API's available (Free and Premium).
Besides, you can use YQL - Yahoo Developer Console and generate an API (URL) which can be used on your website (https://developer.yahoo.com/yql/console/).
YQL - Yahoo Dev Console
you get result in XML or JSON format, so IMO it can be processed on your website.

There are Open Source Exchange Rate API, CurrencyLayer API, Fixer.io API for pulling exchange rates of various currency pairs.
 
M Khalid
Ranch Hand
Posts: 94
2
Python Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

M Khalid wrote:Primarily, there are many API's available (Free and Premium).
Besides, you can use YQL - Yahoo Developer Console and generate an API (URL) which can be used on your website (https://developer.yahoo.com/yql/console/).
YQL - Yahoo Dev Console
you get result in XML or JSON format, so IMO it can be processed on your website.

There are Open Source Exchange Rate API, CurrencyLayer API, Fixer.io API for pulling exchange rates of various currency pairs.




YQL Query if you want to check.

 
reply
    Bookmark Topic Watch Topic
  • New Topic