
3 years
If you think something is fucked, you can do it yourself, the thread is public. Hope you like pie!
Edit: I updated my code, it is now more strict.
Yes: 160
No: 166
Maybe: 37
Total comments gone through: 434
The last few that aren’t categories can be gone through manually. I haven’t done that.
new code
import requests, json, re
url = "https://hexbear.net/api/v3/comment/list?post_id=2207213&sort=New&limit=50&page="
headers = {"accept": "application/json"}
yes = 0
nos = 0
maybes = 0
comment_num = 0
for i in range(1, 10):
response = requests.get(url+str(i), headers=headers)
comments = json.loads(response.text)["comments"]
for comment in comments:
if comment["comment"]["removed"] == False and comment["comment"]["deleted"] == False:
comment_num += 1
comment_content = comment["comment"]["content"]
if re.search('^(\n?::: spoiler )?no(?!\w)', comment_content, re.IGNORECASE):
nos += 1
elif re.search('^(\n?::: spoiler )?yes(?!\w)', comment_content, re.IGNORECASE):
yes += 1
elif re.search('^(\n?::: spoiler )?maybe(?!\w)', comment_content, re.IGNORECASE):
maybes += 1
else:
print(comment_content)
print("-----")
print(f"{yes}, {nos}, {maybes}, {comment_num}")
old comment
Yes: 150
No: 223
Maybe: 23
Total comments gone through: 436
code
import requests, json, re
url = "https://hexbear.net/api/v3/comment/list?post_id=2207213&sort=New&limit=50&page="
headers = {"accept": "application/json"}
yes = 0
nos = 0
maybes = 0
comment_num = 0
for i in range(1, 10):
response = requests.get(url+str(i), headers=headers)
comments = json.loads(response.text)["comments"]
for comment in comments:
if comment["comment"]["removed"] == False and comment["comment"]["deleted"] == False:
comment_num += 1
comment_content = comment["comment"]["content"]
if re.search('no', comment_content, re.IGNORECASE):
nos += 1
elif re.search('yes', comment_content, re.IGNORECASE):
yes += 1
elif re.search('maybe', comment_content, re.IGNORECASE):
maybes += 1
print(f"{yes}, {nos}, {maybes}, {comment_num}")

I modified it a bit for the current survey:
This is the output:
 -----  ----- Hexbear has more lgbt people than the liberal lgbt instances and it's not even trying.   The one neat trick: Visible pronouns that aren't buried in a performative section of the profile page where people can ignore that they exist. -----  what is this honeypot ----- i’m not cishet i am the opposite of that -----  ----- Yes I can't do hexbear emojis on my phone -----  ----- No ----- dean-smile: 97 dean-frown: 174 dean-neutral: 23 dean-malice: 5 total comments gone through: 308 total comments skipped: 31I’m not sure what happened to the comments neither gone through nor skipped (I’m skipping replies)