You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-7Lines changed: 24 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,21 @@
1
1
# 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
+
2
19
## Quickstart
3
20
4
21
1. Export CSESoc Opportunities Sheet as a HTML file and place `Form responses 1.html` into your root directory.
@@ -10,17 +27,18 @@
10
27
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.
11
28
8. Open HTML file in Chrome, and select all (use `CTRL` + `A`)
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**.
*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_
24
42
25
43
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.
26
44
@@ -30,9 +48,8 @@ Opportunities can’t be scraped easily, because the data exists on a Google She
30
48
31
49
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.
32
50
33
-
34
-
35
51
### Breaking changes from Facebook
52
+
36
53
~~(Fixed as of Term 2 2023)~~
37
54
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).
0 commit comments