Why do these two items have the same barcode? - barcode

I am trying to build an iOS app that involves scanning barcodes and I came across this weird scenario where this api and this api gave me different items for the same UPC-A barcodes.
Is it possible for two item issued in the same country to have the same UPC-A barcode or is this the APIs fault?
Here's the barcode image? It'll be great if someone can give me some general barcode guidelines. It's my first time dealing with barcodes.

I don't know anything about API's, but I was a 3rd party seller on Amazon, and it looks like that shower gel was sold on Amazon, and the website http://www.upcitemdb.com that was used to pull those results pulls data from Amazon, somehow. When you enter an item for sale on Amazon, some catergories require you to use a barcode in order to place an item for sale on Amazon. If an item does not have a barcode it is conceivable that the seller invented one simply to get their listing on Amazon. In this case, it looks like they entered the same barcode that RedBull has registered to them.
I also find it fishy that the website http://www.upcitemdb.com not only pulls data from Amazon, but uses Amazon ads, and is likely owned by an Amazon affiliate who has a vested interest in directing traffic to Amazon, not in displaying correct barcode information.

Related

Google Play API

I have an artist who sells his music via google play.
I want to build software that is able to fetch data that consist of number of plays, by gender, age etc.
Is this possible? Currently I have to manually log into the website in order to retrieve the information and automation would work much better for me.
I would be open to paying a fee as well.
Thanks
Such an API isn't offered right now, and to be honest it seems unlikely one will be given this page says "If you would like to make your music available for purchase/download, we recommend one of these YouTube Preferred Partners ...".
It sounds like you'd have to write some website scraping code. There are lots of questions on stackoverflow about libraries for scraping Beautiful Soup is one that is commonly recommended.

Selling custom product that doesn't fit well for in app purchase

I'am working on community project for chess players and I use standard in app purchases provided by Google to get credit for functions to be used. I prefer however one big payment for one country (culture) made by some company or major local chess entity, personally dealing conditions, creating data source to fit my app, giving users everything within the culture for free and in return giving the sponsor place in various screens of my application.
I know 3rd party payment processors are not allowed for standard app use.
Breaking Google Play developer policy in this case or not?
Making in app purchase for this is just weird.
How to get money for such a product not breaking Google play rules?
There's a whole website by Google explaining the policies.
I don't work for Google's policy team, and I'm not a lawyer, but here would be my reading:
If you want a user to pay within your app, then use Google's methods. So if you want the person sponsoring the whole country to pay within the App, use Google's payment methods.
What you do as a company to strike sponsorship deals and take payment is up to you, if that payment happens outside the app.
But you should read that website above carefully for yourself, and of course Google Play has the final say.

Get air ticket prices to show on website

How can I get all airline ticket prices? I want to show them on my website. Any free resource available? I already tried Skyscanner API, but that gives old deals.
To get airline ticket prices, you'd need an API or a web-page you can scrape from.
Depending on what you want, you can make a list of websites you want to compile, such as American Airlines, United Airlines, etc, and scrape each one.
Google has an airline API where you can get the prices of flights. You can see it in action here. Unfortunately, (I assume it's the same thing as Google QPX Express), it's being shut down April 10, 2018.
Best bet is to use a web scraping library like Nokogiri.

Google Places Photos & copyrights

I created a coordinates website that shows different information about a location. I pull this information from API's.
One of the things I show on the website are location photos that I pull from Google Places API.
Now I've received an e-mail from a professional photographer who says I'm infringing on his copyrights by showing the photo on my page. I've told him I pull the photo from Google Places and that he should contact Google if he doesn't want his photo on sites.
His reply is that I as website owner are responsible for the content and that Google has nothing to do with it. I find this very hard to believe...
What do you guys think? Any advice? Can ask Google for help?
The Google Places API has this to say about attribution:
Photos returned by the Photo service are sourced from a variety of locations, including business owners and Google+ users contributed photos. In most cases, these photos can be used without attribution, or will have the required attribution included as a part of the image. However, if the returned photo element includes a value in the html_attributions field, you will have to include the additional attribution in your application wherever you display the image.
Did the photo in question have anything in the html_attributions field? If not, then you're correct that the owner needs to talk to Google. If it does and you didn't display it, then you are in breach of copyright.

What algorithms do GMail/Facebook use to serve context relevant ads?

GMail serves some really good ads on the column on the right of the email text. Same goes for Facebook. The ads which I see on Facebook are often (very) relevant to what interests me. Obviously they preprocess the information available to them. GMail scans the text of my email, extracts keywords and then serves relevant ads. The same goes for Facebook. They have a lot of user specific information available to them. So I would imagine they preprocess all of it, before generating any ad recommendations.
Does anyone know of what specific algorithms do those systems use?
Facebook, at least, doesn't seem to do any context analysis. Instead, when you buy an ad, you select who will see it based on their location, age, pages... and Facebook will try to show your ad to all those people (ads for a given person are sorted based on how much the advertiser wishes to pay to display it, and only the first few ads are shown).
Try creating an ad, it's extremely interesting (and you can get pretty far before they ask you for your credit card number).

Resources