MCPcopy Create free account
hub / github.com/TimMcCool/scratchattach / unfollow

Method unfollow

scratchattach/site/user.py:969–978  ·  view source on GitHub ↗

Unfollows the user represented by the User object. You can only use this function if this object was created using :meth:`scratchattach.session.Session.connect_user`

(self)

Source from the content-addressed store, hash-verified

967 )
968
969 def unfollow(self):
970 """
971 Unfollows the user represented by the User object. You can only use this function if this object was created using :meth:`scratchattach.session.Session.connect_user`
972 """
973 self._assert_auth()
974 requests.put(
975 f"https://scratch.mit.edu/site-api/users/followers/{self.username}/remove/?usernames={self._session._username}",
976 headers=headers,
977 cookies=self._cookies,
978 )
979
980 def delete_comment(self, *, comment_id):
981 """

Callers

nothing calls this directly

Calls 2

putMethod · 0.80
_assert_authMethod · 0.45

Tested by

no test coverage detected