Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
Martin

Avatar / Picture

Administrator
Registered:
Posts: 2,230
Reply with quote  #1 

Hey guys. Im trying something new in unity which is related more to app functionality rather than game development.

Im trying to get the list of words which appear in a search suggest in to an array / list within my code.

For example when a user goes to google.com or amazon.com and types in the letter 'A' it will show a list of possible search suggestions in a drop down box. I would like to get this list in to a string array in my project.

I don't know if this is even possible with unity and its something completely new to me. But if anyone can help or give some ideas of where to start, that would be awesome [smile]

Thanks all
Martin

0
Laurel

Junior Member
Registered:
Posts: 12
Reply with quote  #2 
I tried to make an utility app back then for keyword searching based on this principle . I think such an app would be more useful as a web app than using unity . Here is how you can do it basically everytime you enter a new letter there's a request that's being sent to this url :
https://market.android.com/suggest/SuggRequest?json=1&c=3&query=a&hl=fr&gl=SN
the parameters are :
query => the letter entered
gl      => Country code
hl      => the language
i'm still trying to figure out what the json and c parameters stands for .....
All you need to do is build the url with the requests parameters (by replacing the values by what you want, for example a search for "ab" would have an url like this : https://market.android.com/suggest/SuggRequest?json=1&c=3&query=ab&hl=fr&gl=SN ) .
Then ( using unity make a Www object feed it with the created url and send the request ) .You'll get a json array as a result that would be like this (using the url above ) :
[{"s":"angry birds","t":"q"},{"s":"antivirus","t":"q"},{"s":"applock","t":"q"},{"s":"application","t":"q"},{"s":"angela","t":"q"}]
all you need to do then is process the result .
0
Martin

Avatar / Picture

Administrator
Registered:
Posts: 2,230
Reply with quote  #3 
Hey Laurel. Thanks for the quick reply man [smile] That's awesome.
I just came across the google search suggestion results output link and also the google play one as you mentioned.

Im confused about the other parameters too. But so long as its giving us the search suggestions thats great. 

At the moment I'm just playing around with the web / www functionality of unity. And to give my playing a bit of direction Im looking in to this to see if I can create something which would automate our ASO work. We do a lot of ASO based on the search suggestions so having these results being pulled automatically and presented to our team would be very useful.

Martin
0
Martin

Avatar / Picture

Administrator
Registered:
Posts: 2,230
Reply with quote  #4 
Yeah I was thinking something like this would be better as a web app. But since unity has the C# webform functionality it makes building something a lot faster because I won't need to learn a new package.
Also I'll try to present the info in a cool looking 3D environment, maybe with green matrix code raining down lol.

Martin
0
Martin

Avatar / Picture

Administrator
Registered:
Posts: 2,230
Reply with quote  #5 
I played around with the 'c=' parameter. i think its 'category'. Because it shows book titles for some of them. So c=3 must be apps in the google play store.
0
Laurel

Junior Member
Registered:
Posts: 12
Reply with quote  #6 
You're welcome [wink] , oh great it makes sens c for categorie .... having it like a matrix would indeed be cool lol however i think it would be much more flexible to have it as web/ or soft because you can do neat things like keywords intersections ranking , storing maybe exports in cvs ,tracking .... well a bunch of advanced stuffs efficiently . Actually i got the idea from one of your videos but didn't push it further because i was not sure it would be useful but i probably am going to go ahead and build it .

Oh and here is amazon's urls :
http://completion.amazon.com/search/complete?method=completion&mkt=1&client=amazon-search-ui&x=String&search-alias=mobile-apps&q=kill

q for the queries
0
Martin

Avatar / Picture

Administrator
Registered:
Posts: 2,230
Reply with quote  #7 
Exactly, thats what i was thinking too. Having the data tracked and updated online somehow so that results can be compared and accessed easily.

Sounds cool. Send me a build if thats ok for you. It'll be good to exchange some info on this and see if we can get some good ideas together.

Martin
0
Laurel

Junior Member
Registered:
Posts: 12
Reply with quote  #8 
Sure , i'll send you a test link asap [wink] .
0
Martin

Avatar / Picture

Administrator
Registered:
Posts: 2,230
Reply with quote  #9 
Cool. You can send to my email: martin@cobaltplay.com.

Martin
0
kompleted.com

Avatar / Picture

Member
Registered:
Posts: 91
Reply with quote  #10 
Quote:
Originally Posted by Martin

Hey guys. Im trying something new in unity which is related more to app functionality rather than game development.

Im trying to get the list of words which appear in a search suggest in to an array / list within my code.

For example when a user goes to google.com or amazon.com and types in the letter 'A' it will show a list of possible search suggestions in a drop down box. I would like to get this list in to a string array in my project.

I don't know if this is even possible with unity and its something completely new to me. But if anyone can help or give some ideas of where to start, that would be awesome [smile]

Thanks all
Martin


There's a $10 plugin that does this perfectly with up to 100,000 words. The Asset store is the first place I go when I need a complex feature. I can't remember its name right now but it is "autocomplete" something something. Hope this helped!

__________________
Working on a fix for app discovery...it is not going well. [comp]
0
Martin

Avatar / Picture

Administrator
Registered:
Posts: 2,230
Reply with quote  #11 
Hey Kompleted. Thanks for the suggestion, I'll check it out for sure.
Hope development is going good on your side [smile]

I'll try and get some more answer videos done today for the forum. Will post them soon.

Martin
0
mzr

Senior Member
Registered:
Posts: 222
Reply with quote  #12 
That's very easy to do even in excel. The bigger problem is getting the number of competition and not getting blocked by google for too many automated searches (because they do that and from what I've read they can even fully ban you for that (ip ban I think)).
__________________

http://www.howtomakemobilegames.com/post/twin-stick-shooter-7140396

My second game: Google Play
My first game: Google Play  Amazon iOS

0
Martin

Avatar / Picture

Administrator
Registered:
Posts: 2,230
Reply with quote  #13 
Hey Mzr.
Yeah, thats something I considered too. But there's services like appannie, searchman, sensortower etc who must be making thousands google play http calls each day. i assume they must be changing there IP address sometimes or searching from different servers.

One way to avoid an IP ban though I guess is to limit the number of http calls to 1 per minute and just let the process automate throughout the day.

Martin
0
mzr

Senior Member
Registered:
Posts: 222
Reply with quote  #14 
Yeah, but I'd guess that google guys are clever enough to know that people could do that. So it's possible that they're checking such delayed calls too.
I had a look if there are any automated captcha resolvers, but it seems that google changes captcha very frequently, so you have to update the algorithm pretty much every week. Apparently the only effective captcha resolving system seems to be a paid service done manually (!) by real people.

__________________

http://www.howtomakemobilegames.com/post/twin-stick-shooter-7140396

My second game: Google Play
My first game: Google Play  Amazon iOS

0
mzr

Senior Member
Registered:
Posts: 222
Reply with quote  #15 
Has anyone seen any api that would allow to get autocomplete suggestions for ios?
I've seen they have an api for searching the appstore, but couldn't really find anything regarding the autocomplete.

__________________

http://www.howtomakemobilegames.com/post/twin-stick-shooter-7140396

My second game: Google Play
My first game: Google Play  Amazon iOS

0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.