LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

barcode information from website

Solved!
Go to solution

Hi,

 

I would like to get product information by scanning a barcode.

 

Scanning the barcode and getting the UPC number is not a problem. So my starting point is the number.

 

I have found some websites where I can type in the barcode number (UPC) and it will give me product information. I would like to have my software automatically lookup the website database and return the information to my program.

 

I have used a combination of these two posts and so far so good ;-)

See the example code I have attached.

 

The main website I am using is http://gepir.gs1.org/v31/xx/gtin.aspx?Lang=en-US

  • When selecting trade item info it returns a lot of useful information
  • The downside is that the system limits me to a certain number of searches a day
  • Also, the method I am using is slow (and clunky), I am sure there must be a better way of doing this.

There is a another website that doesn't limit searches http://www.ean-search.org/perl/ean-search.pl?q=4015400084662

  • This site allows you to send fully formed queries (like Google) -
  • BUT I can't seem to read back the results information from the page

 

I also toyed with the idea of using Amazon or Google directly to get back information

I also tried to use SOAP by importing a webservice (http://sine.ni.com/devzone/cda/epd/p/id/3543)

  • But I struggled to find a WSDL for the sites.

So my questions are:

  1. Is there a better (cleaner/faster) way to do this?
  2. Is there a way to get information back from the ean-search website?
  3. Is there an altogether better was to get product information from a barcode?

 

Thanks in advance.

Stuart

0 Kudos
Message 1 of 2
(3,566 Views)
Solution
Accepted by topic author stubon

Hi Stuart,

 

Take a look at the attached file. I used datasocket to return items from the EAN website. It contains a little bit of RegEx and a bit of string parsing to pull the string out of the html

 

Hope this helps with part of your questions

 

David

Message 2 of 2
(3,531 Views)