Skip to content
New issue

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

[WIP] Parse jobs from wordpress feed #445

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

drewvolz
Copy link
Member

@drewvolz drewvolz commented Oct 17, 2020

This is still very much a WIP. This is not yet returning the necessary data. There's more work that needs to be done for parsing the paragraphical keys.

Current parsed response...
[
  {
    "title": "Dacie Moses House Generalist",
    "offCampus": false,
    "department": "Dacie Moses  \n Date Open:  10/19/2020  \n Position available:  During Term",
    "dateOpen": "Unknown",
    "duringTerm": false,
    "duringBreak": false,
    "description": "Dacie's is looking for a student to work 5 hours/week.  Job includes baking, helping with Sunday Brunch, hosting reservation cookie baking guests (evening hours one day/week, and being a part of the Dacie team.  For more information email Julia at [email protected].  Thank you.",
    "links": []
  },
  {
    "title": "CCCE Communications Fellow Position",
    "offCampus": false,
    "department": "Community and Civic Engagement  \n Date Open:  10/19/2020  \n Position available:  During Term",
    "dateOpen": "Unknown",
    "duringTerm": false,
    "duringBreak": false,
    "description": "Center for Community and Civic Engagement\n\n\n\n\n2020-2021 CCCE Communications Fellow Position\n\n\n\n\nFor the Academic Year 2020-21",
    "links": []
  },
  {
    "title": "Student Videography & Philanthropy Assistant",
    "offCampus": false,
    "department": "Alumni Annual Fund Office  Date Open:  10/26/2020  Position available:  During Term",
    "dateOpen": "Unknown",
    "duringTerm": false,
    "duringBreak": false,
    "description": "Office: Alumni Annual Fund Office (External Relations)\n\n\n\nDate Open: Immediately\n\n\n\nPosition available during term\n\n\n\nDescription:",
    "links": []
  },
  {
    "title": "Reading and Math Tutor Position",
    "offCampus": false,
    "department": "Community and Civic Engagement  \n Date Open:  09/14/2020  \n Position available:  During Term",
    "dateOpen": "Unknown",
    "duringTerm": false,
    "duringBreak": false,
    "description": "Responsible To: CCCE Student Experience Manager\n\n\n\n\nObjective: To motivate and guide Northfield students’ academic success through weekly tutoring sessions.\n\n\n\n\nName and Address of employer: Carleton College, One North College Street, Northfield, MN  55057\n\n\n\n\nRate of pay: $11.25 for 2020-2021 academic year\n\n\n\n\nDates this position is active: Academic Year 2020-2021 – September 14, 2020 to June 7, 2021\n\n\n\n\nDuties\n\n\n\n\nCommit to work scheduled hours every week as a Tutor.\n\n\n\n\nTutoring will be limited to reading for k – 6th grade students and/or math for k – 9th grade students. \n\n\n\n\nAttend training sessions.\n\n\n\n\nAssist individual students or small groups with academic needs.\n\n\n\n\nMeet all program expectations, including paperwork, background check, standards of conduct and attendance policies\n\n\n\n\nAttend one continuing education training session per semester\n\n\n\n\nMeet with supervisor once during each term.\n\n\n\n\nParticipate in program evaluation.\n\n\n\n\nMay be completed remotely or in person. If remote, a remote work agreement will need to be completed.\n\n\n\n\nQualifications\n\n\n\n\nReliable\n\n\n\n\nPatient\n\n\n\n\nDesire to motivate and assist students\n\n\n\n\nEffective communication skills\n\n\n\n\nAbility to maintain confidentiality\n\n\n\n\nAbility to give and receive instruction\n\n\n\n\nMust pass a criminal background check\n\n\n\n\nMust qualify for federal work-study or state work-study to work as a paid tutor\n\n\n\n\nHours\n\n\n\n\nTutors will be assigned weekly hours based on the needs of the school. Tutors commonly work 4-6 hrs/wk in this position, though more or less is negotiable. Assigned hours are not to exceed the students’ awarded hours, a maximum of 8 hrs/wk for first-year students, 10 hrs/wk for sophomores through seniors.  \n\n\n\n\nEvaluation will occur at the end of each term.\n\n\n\n\nMeet our qualifications and want to become a tutor? Please e-mail [email protected].",
    "links": []
  },
  {
    "title": "Audio Visual Assistant Engineer",
    "offCampus": false,
    "department": "Office of Director of the Arts  \n Date Open:  10/12/2020  \n Position available:  During Term",
    "dateOpen": "Unknown",
    "duringTerm": false,
    "duringBreak": false,
    "description": "This position is responsible for assisting with audio and video event production, recording and digital documentation, and equipment maintenance in all venues at The Weitz Center for Creativity. Workers in this position will be trained as Assistant Engineers for Kracum Performance Hall, Applebaum Recital Hall, and other Weitz Spaces as needed. In addition to Audio Visual training, Assistant Engineers will be trained in lighting and stage management. The Assistant Engineer will need to attend appropriate training sessions, maintain knowledge of safety and emergency procedures within Weitz, and protect the very delicate technology within the Weitz performance spaces.",
    "links": []
  },
  {
    "title": "Technical Services Assistant",
    "offCampus": false,
    "department": "Gould Library  Date Open:  Immediately  Position available:  During Term",
    "dateOpen": "Unknown",
    "duringTerm": false,
    "duringBreak": false,
    "description": "",
    "links": []
  },
  {
    "title": "Student Research Assistant",
    "offCampus": false,
    "department": "Computer Science  Date Open:  09/22/2020  Position available:  During Term",
    "dateOpen": "Unknown",
    "duringTerm": false,
    "duringBreak": false,
    "description": "",
    "links": []
  },
  {
    "title": "FILMERS",
    "offCampus": false,
    "department": "Football  Date Open:  Immediately  Position available:  During Term",
    "dateOpen": "Unknown",
    "duringTerm": false,
    "duringBreak": false,
    "description": "",
    "links": []
  },
  {
    "title": "Student Assistant",
    "offCampus": false,
    "department": "Football  Date Open:  Immediately  Position available:  During Term",
    "dateOpen": "Unknown",
    "duringTerm": false,
    "duringBreak": false,
    "description": "",
    "links": []
  },
  {
    "title": "Academic Technology Student Assistant",
    "offCampus": false,
    "department": "Academic Technology, a team in ITS  Date Open:  Immediately  Position available:  During Term and Break",
    "dateOpen": "Unknown",
    "duringTerm": false,
    "duringBreak": false,
    "description": "",
    "links": []
  }
]

@drewvolz drewvolz requested a review from hawkrives October 17, 2020 23:36
* RSS no longer redirects the job url correctly
* Switch url to wp-json feed
* Switch to parsing dom from response (1 less network call)
@drewvolz drewvolz added the institution:carleton Things that affect the Carleton endpoints label Oct 17, 2022
@drewvolz
Copy link
Member Author

drewvolz commented Oct 17, 2022

This can benefit from the shared code and approach of #638 wherein the St. Olaf endpoint moved to wordpress, just like the Carleton endpoint.

We may have to look into expanding the capabilities of @frogpond/ccc-html/getDetailMap. I am unsure if only parsing <p> elements is flexible enough to work with both stolaf and carleton job pages.

There may be a need to refactor around handling variable amounts of paragraph elements -- my thinking is that text beyond the first tag could be getting dropped in the current implementation. I think I observed this happening when the consumed endpoint was the carleton jobs endpoint.

@hawkrives
Copy link
Member

(Approved in spirit)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
institution:carleton Things that affect the Carleton endpoints
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants