heopas 90 Posted November 11, 2015 Report Share Posted November 11, 2015 (edited) randomuser.me API. Feel free to use it. HTTP Post Plugin [Required]JSONPath Plugin [Required] define $Random User API { set(#success,0,"Local") set(#successCounter,0,"Local") loop while($both($comparison(#success,"!= Does not equal",1),$comparison(#successCounter,"< Less than",3))) { set(#post,$plugin function("HTTP post.dll", "$http get", "http://api.randomuser.me/?nat=US&gender=male", "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36", "", "", 5),"Local") if($not($contains(#post,"The remote server returned an error"))) { then { set(#success,1,"Local") } else { wait(3) } } increment(#successCounter) } set(#user,"{$plugin function("JSONpath.dll", "$JSONpath parser", #post, "$..first")},{$plugin function("JSONpath.dll", "$JSONpath parser", #post, "$..last")},{$plugin function("JSONpath.dll", "$JSONpath parser", #post, "$..street")},{$plugin function("JSONpath.dll", "$JSONpath parser", #post, "$..city")},{$plugin function("JSONpath.dll", "$JSONpath parser", #post, "$..state")},{$plugin function("JSONpath.dll", "$JSONpath parser", #post, "$..zip")},{$plugin function("JSONpath.dll", "$JSONpath parser", #post, "$..phone")},{$plugin function("JSONpath.dll", "$JSONpath parser", #post, "$..nationality")}","Local") return(#user) } Usage: clear list(%user) add list to list(%user,$list from text($Random User API(),","),"Don\'t Delete","Global") alert("{$list item(%user,0)} {$list item(%user,1)} {$list item(%user,2)} {$list item(%user,3)} {$list item(%user,4)} {$list item(%user,5)} {$list item(%user,6)} {$list item(%user,7)}") Edited November 12, 2015 by heopas 1 Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted September 7, 2016 Report Share Posted September 7, 2016 Thanks for sharring randomuserhas many download formats including .csvand many other options too https://randomuser.me/documentation download file("http://api.randomuser.me/?results=5000&gender=female&format=csv&nat=us,gb&dl","{$special folder("Desktop")}\\5k-female-english.csv") will get you 5k females english names from us and gb no pluginsThanks,Nick Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.