#๐Ÿ”’ Post request to Roblox

19 messages ยท Page 1 of 1 (latest)

scenic vigil
#

Hey. I am currently trying to send a post request to Roblox to follow my user.
My code till now is:

import requests

# Define the URL
url = "https://friends.roblox.com/v1/users/4176218568/follow"

# Define the cookies
cookies = {"Here is my cookie, i aint gonna share"}

# Send the POST request
response = requests.post(url, cookies=cookies)

# Print the response
print(response.status_code)
print(response.text)

So far so good but the responses are:
403
{"code":0,"message":"Token Validation Failed"}

But when I manually follow the user I see this request in the network tab so idk why it doesnt work. Thanks

alpine lanceBOT
#

@scenic vigil

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

pastel beacon
scenic vigil
alpine lanceBOT
#

ro.py is a modern object-oriented asynchronous Python wrapper for the Roblox web API.

Released on <t:1638729978:D>.

pastel beacon
#

!pypi roblopy

alpine lanceBOT
#

Roblox API built in Python

Released on <t:1594071273:D>.

pastel beacon
#

literally the first results i found

scenic vigil
pastel beacon
#

you can check roblox's web API to see if they let you do this. if not, it's not an intended feature

scenic vigil
# pastel beacon you can check roblox's web API to see if they let you do this. if not, it's not ...

https://devforum.roblox.com/t/follow-a-player-using-the-roblox-api/2807260/7
Well seems like they blocked it. Ig I gotta do it using Selenium then -.-

pastel beacon
#

we cant help you

#

but we also cant stop you

scenic vigil
#

!solved

alpine lanceBOT
#
Python help channel closed with !close

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.