ProfileComment¶
Properties¶
id : int
¶
The ID of the comment.
parent_id : int | None
¶
If the comment is a reply, this is the ID of its parent comment. Otherwise, it is None
.
commentee_id : int | None
¶
If the comment is a reply, this is the user ID of the author of the parent comment. Otherwise, it is None
.
content : str
¶
The content of the comment.
replies : list[ProfileComment]
¶
A list of the replies to the comment, as an array of ProfileComment objects.
author : str
¶
The username of the author of the comment.
author_id : int
¶
The user ID of the author of the comment.
created_timestamp : str
¶
An ISO 8601 timestamp representing the date the comment was created.
last_modified_timestamp : str
¶
An ISO 8601 timestamp representing the date the comment was last modified.
Note
I have no idea what the hell this means.
visible : bool
¶
A boolean value representing whether the comment has been deleted or not.
user : str
¶
The username of the user whose profile the comment is on.
Methods¶
delete()
¶
Deletes the comment. You must be logged in and the owner of the profile the comment is on for this to not throw an error.
report()
¶
Reports the comment. You must be logged in for this to not throw an error.
reply(content)
{ #reply data-toc-label="reply"¶
}
Replies to the comment. You must be logged in for this to not throw an error.
PARAMETERS
- content (
str
) - The content of your reply.
Example:
comment = session.scraping.get_profile_comments("griffpatch")[0]
comment.reply("Go away")