A1: Make 7 Bluesky Posts#
Choose Social Media Platform: Reddit | Discord | Bluesky | No Coding
In this assignment, you will modify this program to post at least 7 Bluesky posts (no more than 15). Then you will answer some reflection questions on your bot.
We suggest that while you are working on it and testing it out, you use fake_atproto so it doesn’t post on actual Bluesky. When you are done, you can try running it on your real Bluesky account, but you might just get rate limit errors. You can just run in with fake_atproto and we’ll be able to see what your bot would have posted to Bluesky if Bluesky didn’t block you.
When you are done, you will need to download this file or a html version (file menu -> download) and turn it in on Canvas.
Code to make your posts#
Step 1: Load atproto (Bluesky) code#
# Load some code called "Client" from the "atproto" library that will help us work with Bluesky
from atproto import Client
(Optional) Step 1b: Make a fake Bluesky connection with the fake_atproto library#
For testing purposes, we”ve added this line of code, which loads a fake version of atproto, so it wont actually connect to Bluesky. If you want to try to actually connect to Bluesky, don’t run this line of code.
%run ../../../../fake_apis/fake_atproto.ipynb
Step 2: Login to Bluesky#
To use this on your real Bluesky account, copy your bluesky account name and login into the code below, replacing our fake bluesky name and password.
# Login to Bluesky
# TODO: put your account name and password below
client = Client(base_url="https://bsky.social")
client.login("your_account_name.bsky.social", "m#5@_fake_bsky_password_$%Ds")
step 3: submit 7 Bluesky posts#
This is where you will have to modify the code to:
Post 7 times to Bluesky
Using the sleep() function at least two times
Save at least one piece of text in a variable and use it for making a post
You bot must NOT:
Interact with other users (e.g., reply, like or, tag other users, etc.)
Post more than 15 times
# Post a reddit post
# Send a Bluesky post
client.send_post("This post was made by a computer program!")
# TODO: modify this code to post 7 times, using the sleep() function
# at least two times and using a variable at least once
This post was made by a computer program!
Reflection Questions#
You must also write answers to the following questions Note: You can double click on these blocks of text to edit them
What is the name of your Bluesky account so we can see the posts? Or what error message did you get when trying to make the posts? (you still get full credit even if you couldn’t get it to post for real)
TODO: Put Bluesky account name (or error message) here
If your Bluesky account wasn’t labeled as a bot, how do you think people would perceive those posts? (write at least 3 sentences)
TODO: Write at least 3 sentences here
If people saw those posts and then later discovered that they were posted by a computer program, how do you think their view of the posts would change? (write at least 3 sentences)
TODO: Write at least 3 sentences here
Pick two ethics frameworks and compare how they might evaluate your bot (or a similar one with more benevolent or malevalent purposes)? (write at least 6 sentences)
TODO: Write at least 6 sentences here