Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / HTTP functionality

Author
Message
Brny
8
Years of Service
User Offline
Joined: 12th Oct 2015
Location:
Posted: 3rd Jul 2016 23:39

Hi, i want to know, if it's possible thorough the http commands to for example make a search on google and get the results and the links...


Thanks


Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 3rd Jul 2016 23:55 Edited at: 3rd Jul 2016 23:56
Yes it is.

This might not be runable, but should get you started.

You'd have to parse the returned webpage yourself, but I do know there's a simple google search API that returns plain, basic search results.
Brny
8
Years of Service
User Offline
Joined: 12th Oct 2015
Location:
Posted: 4th Jul 2016 12:06 Edited at: 4th Jul 2016 12:39
Yes, thank you very much for your answer, i did found where is the problem, which has nothing to do with AGK.


The problem is in the adress, is that i dont find a valid API to do that, because filtering the entire webpage code is a nightmare, so i need a API to do that, and the google one is deprecated.


Any suggestions?
Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 4th Jul 2016 13:49
You could try this
I know there was a web address for text only google search results page. I read an article about it a long time back that third party websites used it to filter out the google crap and get plain text search results.
Brny
8
Years of Service
User Offline
Joined: 12th Oct 2015
Location:
Posted: 4th Jul 2016 21:24
Yeah sure, in fact i had tried it before posting here, but the results are sended in JSON or Atom format...

Also it doesen't work for me.

This is the example they put of a request: "GET https://www.googleapis.com/customsearch/v1?key=INSERT_YOUR_API_KEY&cx=017576662512468239146:omuauf_lfve&q=lectures"

So, maybe into GethttprequestAsync(), but not because is httpS, so i dont know how must it be done.


Also i think in case of achieving it, it would not accept a JSON or Atom file...


So i think the best option is to find a more simple API, i'll look but for today i'm over with that....

Login to post a reply

Server time is: 2024-05-03 01:51:28
Your offset time is: 2024-05-03 01:51:28