Recent

Author Topic: Read from Webpage with Lazarus, but maybe .php  (Read 2028 times)

coradi

  • Full Member
  • ***
  • Posts: 148
Read from Webpage with Lazarus, but maybe .php
« on: November 03, 2017, 12:14:30 pm »
Hallo,
how can I read from this example Shop, the price and work with that in Lazarus?
http://demoshop.oxid-esales.com/professional-edition/startseite/
Amstrad Schneider CPC 6128
AVR8/ARM(STM32)

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Read from Webpage with Lazarus, but maybe .php
« Reply #1 on: November 04, 2017, 08:53:45 am »
Ask for API if possible, that's a lot easier to deal with. Otherwise, just scrape the page. Use TFPHTTPClient to get the HTML string, wrap it in a TStringStream then feed it to ReadHTMLFile from SAX_HTML unit. Traverse the resulting THTMLDocument to find and work with whatever values you want.

 

TinyPortal © 2005-2018