Skip to content

Commit 5f8e590

Browse files
committed
Update prompt to use in readme.md
1 parent 19d0d51 commit 5f8e590

File tree

1 file changed

+24
-7
lines changed

1 file changed

+24
-7
lines changed

README.md

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,21 @@
11
# CSESoc Newsletter Generator
2+
3+
## Browser-Use Web-UI Prompt
4+
5+
### Task Description
6+
7+
Go to https://zitianqin.com/csesoc-newsletter-generator/ to generate the CSESoc Newsletter for the week between Monday March 3 to Sunday March 9 2025.
8+
9+
### Additional Information
10+
11+
To find out information about the events, go to https://www.facebook.com/csesoc/events and visit each event page for every event within the week period from Monday to Sunday. Please put the time in the following format in the generator: e.g. 27 JAN 10-8:30PM. For the image link, please copy the facebook event banner image link and paste it into https://imgur.com/upload to upload it, and then right click on the uploaded image to copy the png or jpeg url of the image before inserting it into the newsletter generator.
12+
13+
To find out information about media, go to https://media.csesoc.org.au/ and check whether any of things near the top of the home page were published within the last week. If they are, go to the page, get a short description, and add it to the generator. The image can be grabbed from the page top as well. Then, go to https://www.youtube.com/c/csesocunsw/videos and check if any of the videos were uploaded in the last week. If they were, do a similar thing, and use the thumbnail of the youtube video as the image link.
14+
15+
To find out information about opportunities, keep in mind that if any of them are unpaid work-related jobs or internships, make the title in the generator say in capital letters that it's unpaid. Go to https://docs.google.com/spreadsheets/d/1d0IPh9fX-lV7zHxabuTf-rph_NItUqCWIW0yXz6YAdk and check if any new requests came though in the last week. Add them to the newsletter generator. (you can include the entire description). Then, go to https://mail.google.com/mail/u/1/#inbox and check if any emails offering opportunities or asking for promotions to the student society there were not in the opportunities form, and add the details from there to the newsletter generator as well.
16+
17+
If any of the sections do not have any events, media, or opportunities, feel free to leave them blank.
18+
219
## Quickstart
320

421
1. Export CSESoc Opportunities Sheet as a HTML file and place `Form responses 1.html` into your root directory.
@@ -10,17 +27,18 @@
1027
7. Ensure the titles for opportunities are actually the roles offered, and that the descriptions aren’t too long. If there is an apply link, add a **Call to Action link** saying “Apply now” or something similar.
1128
8. Open HTML file in Chrome, and select all (use `CTRL` + `A`)
1229
9. Paste into Gmail and send the email:
13-
14-
15-
- SUBJECT: `[CSESoc] Newsletter Term 1 Week 1`
30+
31+
32+
33+
- SUBJECT: `[CSESoc] Newsletter Term 1 Week 1`
1634

1735
## How it works
1836

1937
Upcoming events are scraped from CSESoc UNSW’s Facebook Page. We scrape from the mobile version of the page because it doesn’t rely on JavaScript to dynamically load the page, making it easier to scrape. For each upcoming event we retrieve the **title, description, time, location** and **cover photo**.
2038

2139
![image](https://github.com/csesoc/csesoc-newsletter-generator/assets/79000337/9db415c6-a1ff-4727-8fac-232d8e04cc61)
22-
23-
*This is what BeautifulSoup4 sees when you scrape the iPad event page*
40+
41+
_This is what BeautifulSoup4 sees when you scrape the iPad event page_
2442

2543
Since around the start Term 2 2023, Facebook requires all users to be signed in to view the upcoming events for Facebook pages. A .env file containing USERNAME and PASSWORD for an active FB account is required for the scraper to be able to log in to facebook.
2644

@@ -30,9 +48,8 @@ Opportunities can’t be scraped easily, because the data exists on a Google She
3048

3149
Now that we have all our data, the script writes it up nicely into a HTML file. However, the scraped descriptions are always usually too long, so that’s why we need to make some manual changes once the HTML file has been made.
3250

33-
34-
3551
### Breaking changes from Facebook
52+
3653
~~(Fixed as of Term 2 2023)~~
3754
This used to be quite automated. However, since around the start of Term 3 of 2022, users that are not logged in cannot see a page's upcoming events, regardless whether the event or page is public. This is why we must now provide the script a saved local copy of [https://www.facebook.com/csesoc/events](https://www.facebook.com/csesoc/events).
3855

0 commit comments

Comments
 (0)