generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: How do I use GetAsync?

Previous Thread :: Next Thread 
ash877 is not online. ash877
Joined: 18 Feb 2008
Total Posts: 5142
15 Jul 2015 06:40 PM
How does the website I'm using GetAsync on know what to send? Using GetAsync on the website itself will return the entire html layout, bu what if I only want a certain part?
Report Abuse
ash877 is not online. ash877
Joined: 18 Feb 2008
Total Posts: 5142
15 Jul 2015 06:57 PM
no-one ever answers my questions...
Report Abuse
aliandbaheeg is not online. aliandbaheeg
Joined: 10 Jun 2014
Total Posts: 1092
15 Jul 2015 07:03 PM
if it returns a JSON format, use JSONDecode, if it doesn't you need to do some string manipulation using methods like

string.match/string.find

etc


-Baheeg
Report Abuse
PearSprite is not online. PearSprite
Joined: 02 Jul 2015
Total Posts: 230
15 Jul 2015 07:04 PM
Basically, you're requesting what's known as a resource from a server. Any page you view on a website was created by someone or something at one point, if you know the address, then you can get all of the HTML for that page, the same exact information your browser uses to display that page to you. If you want only a specific part of that page, you're going to have do what's called scraping. In other words, you're going to have to parse the webpage from the string you get from GetAsync. You don't need any advanced knowledge of HTML to do this, but knowing regex helps for parsing.
Report Abuse
ash877 is not online. ash877
Joined: 18 Feb 2008
Total Posts: 5142
15 Jul 2015 07:59 PM
ok thanks.
Report Abuse
ash877 is not online. ash877
Joined: 18 Feb 2008
Total Posts: 5142
16 Jul 2015 04:46 PM
How would I query certain parts such as database from a website that I made?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image