Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to get a players profile description?

Asked by 7 years ago

Is there a way to get a players profile description from the roblox website?

0
There used to be, but i think it is unusable now. TinyScripter 70 — 7y

1 answer

Log in to vote
0
Answered by
Azarth 3141 Moderation Voter Community Moderator
7 years ago

There's no ROBLOX api for it, so you'd need to scrape the site. Since I've already written something like this before, here's an example in python.

01#!/usr/bin/python
02 
03import sys
04from termcolor import colored
05from urllib2 import urlopen
06from bs4 import BeautifulSoup as bs
07 
08userid = raw_input("User id: ")
09 
10if len(userid) > 0 and userid.isdigit():
11    url = "https://www.roblox.com/users/{0}".format(userid)
12    url = urlopen(url).read()
13 
14    if len(url) != 0:
15        soup = bs(url, 'lxml')
View all 24 lines...
Ad

Answer this question