We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It would be beneficial to have this feature implemented.
The text was updated successfully, but these errors were encountered:
from bs4 import BeautifulSoup import requests def find_parent_id(comment_id, user): try: i = 0 while True: data = requests.get( f"https://scratch.mit.edu/site-api/comments/user/{user}/?page=" + str(i)).text soup = BeautifulSoup(data, features="html.parser") comment = soup.find(id="comments-" + str(comment_id)) if comment != None: return comment.parent.parent.parent.find(class_="comment")["data-comment-id"] break i += 1 except AttributeError: return comment_id
Sorry, something went wrong.
I know about that and TimMcCool likely also does. I am just suggesting it be implemented.
Okay, I agree it should be good to implement :D
No branches or pull requests
It would be beneficial to have this feature implemented.
The text was updated successfully, but these errors were encountered: