Everything you need to build a Svelte project, powered by create-svelte
.
If you're seeing this, you've probably already done this step. Congrats!
# create a new project in the current directory
npm create svelte@latest
# create a new project in my-app
npm create svelte@latest my-app
Once you've created a project and installed dependencies with npm install
(or pnpm install
or yarn
), start a development server:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
To create a production version of your app:
npm run build
You can preview the production build with npm run preview
.
To deploy your app, you may need to install an adapter for your target environment.
en-US
it-IT
You can fetch categories with the query:
https://www.careerservice.polimi.it/api/it-IT/Announcement/Courses
which returns the following schema:
interface Response {
data: Array<{
fieldId: string // an incremental id
fieldName: string // category name
hightPercent: 38 // lol, a typo!
isBroken: false // why
subscriptions: 31 // the number of jobs posted
}>
}
You can fetch jobs in a category with the query:
https://www.careerservice.polimi.it/api/it-IT/Announcement/Announcements?PagedFilter.NumberOfPages=16&PagedFilter.PageIndex=1&PagedFilter.PageSize=10&companyName&companyNameId&announcement&announcementId&onlyFavoriteCompanies=false&onlyFavoriteAnnouncements=false&location&location_it&location_es&paid&courses[0]=74465615
which returns the following schema:
interface Response {
data: {
numberOfPages: number
pageIndex: number
pages: Array<{
announcementType: string // Job, Stage ...
companyName: string
date: string // format: "2023-12-01 12:00:00"
id: string // numeric
isFavourite: boolean
location: string
name: string
pictureUrl: string
pictureUrlGray: string
stored: number,
hasRimborso: boolean,
tipologia: string // Job, ...?
}>
totalItems: number,
showAlert: boolean
}
hasError: boolean
}
First you need the following cookies:
careerApp
JSESSION
Then GET the following URL:
https://www.careerservice.polimi.it/api/it-IT/Announcement/Announcement?announcementId={ID}&announcementType={JOB}